At 13:01 2002-02-10 -0800, Andrew Edelstein wrote:
> * 9876543210^0 ^Received: from default
The initial Received: header (where the message was passed from a client
machine to the mail server), may very well contain "default" for the
machine name on valid email. Windows boxes in particular.
> * 9876543210^0 ^Subject:.*ADV
> /dev/null
Not a good idea. Unless you specify case-sensitivity as a recipe flag,
that adv will match adv anywhere and in any case, within the subject. Even
with case sensitivity, you probably get a certain amount of valid email
with all uppercase subjects.
advance
advice
advantage
adventure
adverb
are just some of the words that spring to mind that _start_ with adv -
there are others which would _contain_ it. An improvement might be:
^Subject:.*ADV\>
(\> is a special regexp, see 'man procmailrc').
<snipped and concatenated>
> * ^From:.*transcentives\.net
> * ^From: .*gm20\.com
> * ^From: .*optamail\.com
> * ^From: .*getfreepizza\.com
See the FAQ on better ways of determing the "sender". "^From:.*" is very
error prone.
Also, if these are actually in the same recipe, these can be combined:
* ^From:.*(transcentives\.net|(gm20|optamail|getfreepizza)\.com)
(Though if you're supposed to be checking another header, you should be
doing that).
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail