Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am using SpamAssassign and moving spam to it's own file under/home/<user>/mail. I have setup SquirrelMail for users to examine their spam incase of a false positive.
I would like to purge the spam folder of older mails and only keep the most recent 30 days of spam for each user.
If this is still an unresolved issue and you're not afraid to script a bit, have a look at procmail. In short if you have a date variable properly formatted and add "-d '1 month ago' you'll have the previous month, pipe the mailbox through the procmail recipe and let formail select by date, then grep for the previous month variable. I think that could work.
I found a great utility called grepmail. It does exactly what I need. I just pipe my Spam folder through it with a date argument to filter out the older spam.
I found a great utility called grepmail. It does exactly what I need. I just pipe my Spam folder through it with a date argument to filter out the older spam.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.