procmail
[Top] [All Lists]

How to use Procmail to remove messages from server after x number of days

2011-03-01 10:34:59
Hi All,

I'm not sure if this is even possible, but I would like to automatically remove all mail for all users after 10 days using Procmail.

Thanks in advance for any ideas on if, or how to get this working. If anyone knows of a link to a how to article on this it would be much appreciated as well.

I currently use these variables:

# System defaults
SHELL=/bin/sh
UMASK=007
LINEBUF=32768
COMSAT=no
DROPPRIVS=
FORMAIL=/usr/local/bin/formail
SENDMAIL=/usr/sbin/sendmail
NSLOOKUP=/usr/sbin/nslookup
PMSRC=$HOME/pm-lib/lib
PM=$HOME/puremail
RC=$PM/rc_files
REPLY=$PM/replies
LISTS=$PM/wordlists
FGREP=fgrep
GLOBALNOBOUNCE=NONE
RM=rm
NL="
"

# Global Variables
DEFAULT=/var/mail/rice
DELIVER=/usr/boxes/rice/computerstuff.net/pobox
LOGFILE=$HOME/log
LOGABSTRACT=off
LOCKFILE


--
Best Regards,

Tim Rice
Computer Stuff
Phuket Thailand 83000
Tel: +66 76 376165
Fax: +66 76 376165
www.computerstuff.net
www.phuket-mail.com
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail