procmail
[Top] [All Lists]

Re: An 'or' recipe

2017-08-13 18:50:12
In article <20170813232051(_dot_)21944(_dot_)qmail(_at_)rahul(_dot_)net> you 
write:
* 2147483647^0 $ ^From:${ws}.*jrobertsonwrites@gmail\.com
$AUTHORS
#

where ${ws} is folded whitespace, (the characters between the block
braces are a tab character, hex 09, followed by a space character, hex
20).

That seems overcomplicated -- I have never seen a non-spam From: line
that had anything other than space or tabs after the From: and before
the address.  Since you need to skip over comments like these:

  From: Joe Blow <joe(_at_)examp1e(_dot_)com>

you might as well just do what I did, 

  ^From:.*(address1|address2|address3|...|addressN)

:0
*^From:susanmay21(_at_)iinet(_dot_)net(_dot_)au |\
^From:billh(_at_)marsjourney(_dot_)info |\
^From:mail(_at_)cchaseharwood(_dot_)com |\
^From:barry(_at_)barryjhutchison(_dot_)com |\
^From:blake(_at_)blakebrivers(_dot_)com |\
^From:help(_at_)bookfunnel(_dot_)com |\
^From:brandon(_at_)brandon-ellis(_dot_)com |\
^From:brian(_at_)brianference(_dot_)com |\
^From:cgockel(_at_)cgockelwrites(_dot_)com |\
^From:contact(_at_)ccekeke(_dot_)com |\
^From:jrobertsonwrites(_at_)gmail(_dot_)com
$AUTHORS

between the From: and the address.  Try this:

:0
* 
^From:.*(susanmay21(_at_)iinet(_dot_)net(_dot_)au|billh(_at_)marsjourney(_dot_)info|mail@cchase
harwood.com|barry(_at_)barryjhutchison(_dot_)com|blake(_at_)blakebrivers(_dot_)com|help@boo
kfunnel.com|brandon(_at_)brandon-ellis(_dot_)com|brian(_at_)brianference(_dot_)com|cgockel@
cgockelwrites.com|contact(_at_)ccekeke(_dot_)com|jrobertsonwrites(_at_)gmail(_dot_)com)
$AUTHORS

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)rwth-aachen(_dot_)de
https://mailman.rwth-aachen.de/mailman/listinfo/procmail

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