procmail
[Top] [All Lists]

Re: pack all incoming mails

2001-06-01 05:10:32
* On [010601 13:43] Lukasz Kuszaj <lukasz(_at_)kuszaj(_dot_)net> wrote:
How to I can pack every incoming mail to separate file ?
Do you mean you want every mail that you received saved to its own
mailbox? If so, you would need to get procmail to deliver to a
different file each time, one way to do this would be to match on the
message-ID of each mail, and then save to a file with that name.
However, this seems to me to be a slightly odd thing to do, if you
have any significant amount of email it would very quickly become
impossible to keep track of where new emails where arriving. For what
it's worth, the follwing recipe may do what I think you want:

:0:
* ^Message-ID:\/<(_dot_)*(_at_)(_dot_)*> #match on the message-id and save the 
value to
                        #hold space.
                        #Then deliver the mail to a mailbox with
                        #name == message-id
$MATCH

Hope that helps
Lawrence
-- 
|Lawrence 
Mitchell|wence(_at_)gmx(_dot_)li|http://members.tripod.co.uk/EVSvienna/ |
|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|
|+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++|
`-----(Terry Pratchett, Hogfather)-------------------------------------´
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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