[Mimedefang] MD-Quarantine dir cleanup script?

Cormack, Ken kcormack at acs.roadway.com
Fri Sep 19 15:18:00 EDT 2003


I dont recall seeing David's one-liner, per-se, but here's what I use:

	cd /var/spool/MD-Quarantine
	find . -type d -ctime +4 -print | while read OLD
	do
	  rm -r ${OLD} 2> /dev/null
	done

I suppose this could be re-written to:

	find . -type d -ctime +4 -exec rm -r {} \;

Et viola!  One-liner.

Ken

-----Original Message-----
From: Paul [mailto:freebsd at pksnet.com]
Sent: Friday, September 19, 2003 3:05 PM
To: MIMEDefang ML
Subject: [Mimedefang] MD-Quarantine dir cleanup script?


I recall David posting a one liner a while back to clean subdirs in the
quarantine directory older than a week. Unfortunately, due to a system crash
I lost that and the archive search seems to ebe by date.

Anybody have that script handy? Thanks!

Fixed OpenSSH and updated Sendmail, MD is still running strong! Great Job
David!


Paul

_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang



More information about the MIMEDefang mailing list