procmail
[Top] [All Lists]

Re: Expiring mailing lists

2006-01-19 03:58:20
Am 2006-01-15 22:07:51, schrieb Brian D:
I currently use fetchmail/procmail to sort incoming mail into imap mailboxes.
I would think it is possible to set up a cron script to use procmail to
expire read messages in the mailing list mailboxes. 

Would this be a good way to go about it, if so can anyone point me in the
right direction.

Set an unique Expires header

:fw
|formail -a "X-$USER-Expires:`date -R`"

and then create a cron jog which grep the messages (maildir)
for this Header and then if the Date/Time has passed delete
it or move it to en expired folder.

Greetings
    Michelle Konzack
    Systemadministrator
    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
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    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>