procmail
[Top] [All Lists]

Re: expiring SPAM in Maildirs?

2008-07-15 09:21:13
On 15-Jul-2008, at 10:14, LuKreme wrote:
What I would like to do is figure out some way to auto-delete messages in there that are, say, 30 days old or older.


Ah.. OK, I R moron. I was looking for a mailserver/procmail/maildir solution because, frankly, my brain still works on mbox.

find /usr/local/virtual/*/.SPAM/ -type f -ctime +30 -exec rm {} \;

deletes all the maildir spam over 30 days old.  Doh.

Suppose the question might still be of interest for mbox accounts though... So, how would I clean out the SPAM boxes of the mbox user of spam over 30 days old?


--
SUSURRATION: It's a hushed noise. But it hints of plots and secrets
        and people turning to one another i surprise. It's the noise,
        in fact, made just after the sword i withdrawn from the stone
        and just before the cheering starts.

____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>