I currently use FreeBSD (7.x) for my MTA and Spamassassin for checking EMail for detecting incoming spam. (Has been working for literally YEARS VERY well - I highly recommend the combination of software/OS of such high caliber.)
My current setup merely sends the detected emails (as spam) to folders depending on their Spamassassin Score(s) - One folder "Probably-Spam" and another "Certainly-Spam", of course "good" email gets delivered directly to the end-user's "inbox."
What I'd like to do is continue to use that system/setup for my end-users, but I'd like to have the Email(s) in the spam-folders deleted after they are say, 15 days old. (Some users never clear their spam folders.
WithOUT deleting ALL the mail in those Spam Folders, how would I be able to select JUST Emails 15 days (or older) from those SPAM mail-folders for my end-users on an automatic basis? (i.e. using a cron.)
I've been working with FreeBSD for quite some time, have some GOOD scripting background, but something like this might be just a little lower-level programming. So go easy on me, please?
Any help? (Hope this wasn't too confusing?)