On Wed, 3 Oct 2007, Dale Qualls wrote:

> As my spool gets inundated with  junk, I run this command every day at 
> 11:30 p.m. via a cron job.
> find /var/MailRoot/spool -depth -name *.MX2 -ctime 1 -delete
> 
> MX2 is the name of one of my xmail boxes so all files in the spool have 
> it appended to the end of the filename by default.
> 
> Works like a charm :)  This actually looks at the current day plus 1 day 
> so you'll always have files 2+ (but less than 3) days old in your 
> spool.  Checkout the man page on "find" to see the options for times 
> (minutes, hours, etc...)

This is rather wrong though, if your total spool message age can be longer 
than one day. To be safe, just use 2*T where T is the total time a message 
can live inside the spool (depends on the re-send policy params).



- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to