Shell script to delete spam in the users spam folder (.INBOX.spam) in the Maildir system that older than n days (default 30 days)
Put it in cron (weekly should be ok) eg.
10 0 * * 0 root scriptpath/cleanspam.sh
edit the script and set
DAYS=n
logfile=/var/log/whatyouneed
Tested on
FreeBSD 5.4 / DA / Spam Assassin / Dovecot (Maildir)
Download here http://www.directadmin.com/forum/attachment.php?s=&postid=89814
Put it in cron (weekly should be ok) eg.
10 0 * * 0 root scriptpath/cleanspam.sh
edit the script and set
DAYS=n
logfile=/var/log/whatyouneed
Tested on
FreeBSD 5.4 / DA / Spam Assassin / Dovecot (Maildir)
Download here http://www.directadmin.com/forum/attachment.php?s=&postid=89814
Last edited: