procmail
[Top] [All Lists]

Re: Filtering existing email using procmail/formail

2008-03-07 08:36:47
Am 2008-03-03 11:30:50, schrieb Ben Stasiewicz:
I have setup some procmail recipes to filter emails into particular 
Maildir folders. This works perfectly for any new email that I receive. 
I would like to be able to filter all of my existing email through 
procmail so that they too can be placed in the appropriate Maildir folders.

I used formail to do this with the command 'formail -s procmail < 
/path/to/an/email'. This worked well but unfortunately none  of the 
Maildir status flags were preserved (as I expected). For example 'D' for 
draft messages, 'R' for messages I have replied to, 'S' for messages I 
have seen etc. For now I am using my IMAP client to manually move emails 
to the correct Maildir folder. Is there a way I can automate this using 
formail/procmail and still preserve any of the Maildir status flags?

Only with a highly complex script...

I have done this for some years at the french army for 27.000 users
on around 70 Mail-Servers with over 300.000.000 messages...

The script was running some weeks...

Thanks, Greetings and nice Day
    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>