procmail
[Top] [All Lists]

Re: Argh! Why is procmail doing this?

1998-12-03 14:56:24
Rik Kabel writes:

You need one more level of parens around the subject strings (and can
afford to lose the quoting of each substring).

By quoting, I assume you the inner parens.

Do you really receive these messages with zeroes instead of letter
'O'?

Yes, sadly.  People trying to be clever.

1. If you mean to use the ^TO token, and not simply to match 'To' at the
   beginning of the line, the ' .*' is unnecessary, and possibly incorrect
   (because of the space -- I'm too lazy right now to test it, but don't
   let that stop you from testing it). If you don't intend the ^TO token,
   use '^To: .*' or (preferably) something tighter to prevent matching
   liamcampbell(_at_)s-1-community(_dot_)net(_dot_)

Well, what I *DO* want is to filter out these mail that are going
specifically TO me rather than the ones going to "allcompanies",
"softops", "secondfloor", etc.  Am I doing this incorrectly?

4. You may also want to check for tabs where you check for
   spaces. Simply replace each space in the regexps with [ ]
   (enclosing a space and a tab).

Other people have told me this too, and I understand the logic behind
it, but to date (after some number of years of using procmail on and
off), I can't remember ever having been bitten by this.

Many thanks to all that have responded; as was pointed out, it was my
misunderstanding of the precedence of or and concatenation.