procmail
[Top] [All Lists]

Re: How to use Procmail to remove messages from server after x number of days

2011-03-02 06:22:50
Hello LuKreme,

Am 2011-03-01 11:12:26, hacktest Du folgendes herunter:
Easy! First, make sure you are using Maildir folders. then something
very much like this will do it:

find /home/*/Maildir/.SPAM/{cur,new} -type f -ctime +7 -delete

Does not work, if you use courier-imap  because  if  courier  moves  the
messages from /new/ to /cur/ it change the "ctime".  Also  the  name  of
the messages in the Maildir must be unique and  if  courier  detect  two
conflicting ones it change the ctime.

THIS IS TESTED FOR SOME MINUTES ON Debian/Squeeze

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/
____________________________________________________________
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>