Removing Old Messages from Quarantine

(1.1)


I want my users to be able to "forget about" their quarantined messages if they so choose. In other words, if a user trusts DSPAM to quarantine Spam (and only Spam), why should that user have to periodically clean out their quarantine area?

This Bash script (age_spam_quarantine) will remove messages that are older than a specified number of days from every user's quarantine area (joeblow.mbox). The number of days is specified by a variable in the script. The script uses archivemail, so you will need to install this utility.

I run the script nightly via cron. You will probably need to run it as either root or as the dspam user.


The author of this submission hereby releases any and all copyright interest in this code, documentation, or other materials included to the DSPAM project and its primary governors. I intend this relinquishment of copyright interest in perpetuity of all present and future rights to said submission under copyright law.



Powered by Apache