procmail
[Top] [All Lists]

RE: some questions

2001-03-13 16:01:56


I have several questions about procmail :

In general you may want to send separate messages w/ 1 question each to make
sure that they all get answered... after all, 1 question can start its own
thread

However these were both brief enough to fit in 1...


1. How do I refilter messages which already stored in Mailbox, because at the
moment I received the messages, I haven't applied the procmail rules there.

        formail -s procmail -m ~/.procmailrc < yourmailboxhere

make sure you have a COPY of 'yourmailboxhere' stored safely away in case
something goes wrong!



2. How do filter a message based on Sender:  ? I have tried to do
* ^TOmailling-list(_at_)domain | ^SENDERmailling-list(_at_)domain
but it doesn work at all to filter based on sender ;(.

Leave off the first part and use the header as it is shown:

* ^Sender:

then use a [    ]
(that's a [ then a 'space' character, then a 'tab' character, then a ])

then use 'mailing-list(_at_)domain'

so put it all together


* ^Sender:[     ]mailinglist(_at_)domain


of course you need the little extras to make a full recipe:


:0:
* ^Sender:[     ]mailinglist(_at_)domain
mailbox1

that will put all the mail from that mailing list into 'mailbox1'

HTH


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