procmail
[Top] [All Lists]

Re: MATCH with OR

2001-10-24 05:34:58
So ... I can't seem to get either of these to work.  Which one is
*supposed* to be right?

[...]

:0 fwh:
*       \/(semicustomwebsites|autoremove).com|\
        (theslotsaretalkingtome|unbeatabledeals|smarttransact).com|\
        (dotinfocentral|NewDomainFactory).com|\
        (mailpromopack|postmasterpro|travelcomm|gate|roi1).net|\
        domainstop.org
| formail -A "X-spam-match: $MATCH"

A backslash at the start of a condition line effectively says "the
regular expression starts here" and isn't part of the regular expression
itself.  The details are in the man page somewhere.  So you need a
condition line that starts with something like:

  *   \\/(semi....

or (my preference):

  *   ()\/(semi....

Yes, it *is* confusing.

Hope that helps,
Martin
-- 
Martin McCarthy                 /</                  PGP key available
    `Procmail Companion'        \>\  http://www.ancient-scotland.co.uk
     Addison Wesley             /</    http://www.ehabitat.demon.co.uk
_______________________________________________
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>