procmail
[Top] [All Lists]

Re: filtering recipe and local mailbox

2001-09-24 04:01:55
Alvin Sim <alsim3(_at_)yahoo(_dot_)com> wrote:
the header for the freebsd lists seems to be inconsistent between MUAs
(i.e. the bat/pegasus and mutt) between OS'es but it always has a
owner-freebsd-* somewhere. but even if i put "* ^Sender:.*... ", that
would still not get the mail filtered properly.

What you need to do is check the headers of a few list messages to
find headers that are always inserted, and are unique.

:0:
* ^From:(_dot_)mutt-users(_at_)mutt\(_dot_)org
mutt-users

The mutt-users list doesn't have this header, this mails always come
from the individual list participants, the following works for me:

:0:
* ^Sender: owner-mutt-users
LI.mutt

:0:
* ^TO_cvs-all
* ^From:.owner-cvs-all
* ^Sender:.*cvs-all
freebsd/cvs-all

Procmail considers multiple conditions for one recipe to be AND
conditions, is this what you mean?  A mail will only match this
recipe if:
it is TO_cvs-all, is from owner-cvs-all and has a sender cvs-all

:0:
* ^TO_freebsd-questions
* ^From:.owner-freebsd-questions
* ^Sender:.*questions
freebsd/questions

The same goes for this.
Additionally, the ^TO_ regexp is quite processor hungry, especially
when filtering list mail, it's probably better not to use it if you
can find a unique single header for that list.

--
Lawrence Mitchell
wence(_at_)newald(_dot_)homeip(_dot_)net
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail