procmail
[Top] [All Lists]

Re[2]: filtering recipe and local mailbox

2001-09-24 04:31:39
Monday, September 24, 2001, 06:58:07 PM, Lawrence Mitchell wrote:
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

i'll try it out and see how it goes for this one.

: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

ok... i thought that it was an OR condition. i'll try the example for
your mutt recipe since the freebsd lists seems to always have an
"owner-freebsd-* " in the [X-]Sender: field.

: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.

thanks for the tip. i'll try to play around some more with it.

~as

-- 
Alvin alsim3(_at_)yahoo(_dot_)com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail