procmail
[Top] [All Lists]

Re: Recipe Modification Errors

1997-08-17 11:11:00
Rick Troxel recommended to Eric Hilding:

| ... (with the superfluous trailing wildcard stripped) ...

Eric, though, had yet another superflous trailing wildcard, which also should
be stripped, and based on the text he showed us, he is trying to match
literal parentheses in the text with the parentheses in one of the conditions
on the first recipe.  Parentheses are magic by default and need to be escaped
if you want procmaile to take them literally.  (Unlike brackets, a right pa-
renthesis that is to be taken literally needs its own escaping even if the
left one is escaped or absent.)

| :0:
| * !^FROM_DAEMON
| * !^X-Loop: homes4u(_at_)garlic\(_dot_)com
| * ^From: nobody
| * ^Subject: Inquiry & Referral(WWW)
| Aaawww.IN

Eric's sample text had "Inquiry & Referral(WWW)" as the subject, so that
last condition needs to be like this:

  * ^Subject: Inquiry & Referral\(WWW\)

The original condition would match a header of this sort:

 Subject: Inquiry & ReferralWWW[maybe something more here]

| :0:
| * !^X-Loop: homes4u(_at_)garlic\(_dot_)com
| * ^From: Mailer-daemon.*
| Areject1.IN

Again, the trailing ".*" on the second condition is a small waste of
computing power that does absolutely no good.  It should read

  * ^From: Mailer-daemon

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