procmail
[Top] [All Lists]

Re: Faulty Recipe?

2002-08-05 17:42:00
At 16:42 2002-08-05 -0400, Curtis Maurand did say:

Forgive my naivete, I may be wrong, but isn't the recipe below an "anded"
recipe instead of an "or" recipe?

Shouldn't it be something like:

:0:
* ^(to|from|cc)(_dot_)*procmail(_at_)lists\(_dot_)RWTH-Aachen\(_dot_)DE
  ^(to|from|cc)(_dot_)*procmail-users(_at_)procmail\(_dot_)org
Proc

If the second "condition" line started with "*", it would be an ANDed recipe. But since it doesn't, what it is is a BROKEN recipe.

If the first condition line ended with:
        | \

you'd have an or, as was sort of offered in the original, but was BROKEN there as well because each of the continued lines started with an *

>> :0
>> *  ^To:(_dot_)*procmail(_at_)Lists\(_dot_)RWTH-Aachen\(_dot_)DE(_dot_)*|\
>> *  ^To:(_dot_)*procmail-users(_at_)procmail\(_dot_)org(_dot_)*|\
>> *  ^Cc:(_dot_)*procmail-users(_at_)procmail\(_dot_)org(_dot_)*
>> Proc

[bigass snip]

:0
* ^(To:(_dot_)*procmail(_at_)lists\(_dot_)rwth-aachen\(_dot_)de|\
To:(_dot_)*procmail-users(_at_)procmail\(_dot_)org|\
Cc:(_dot_)*procmail-users(_at_)procmail\(_dot_)org)
Proc

(note trailing .* were removed - they're TOTALLY uncalled for here).

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

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