procmail
[Top] [All Lists]

Re: expiring SPAM in Maildirs?

2008-07-23 05:19:30
Am 2008-07-15 10:20:54, schrieb LuKreme:
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 {} \;

Bingo!

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?

Is it uw-imap or dovecot?

I would use a perl script (e.g. Debian Package  libnet-imap-simple-perl)
which access the folder using the IMAP protocol and then look  into  the
first (top) "Received:" header.  If the date is older then 30 days  send
a delete+expunge command.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

____________________________________________________________
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>