procmail
[Top] [All Lists]

Re: multiple addresses in To and Cc lines

1998-04-22 08:47:08
Sean Straw suggested to gomer(_at_)lab03(_dot_)fhu(_dot_)edu,

| The typical '^TO:(_dot_)*you(_at_)somewhere(_dot_)com' could false match on
| "meandyou(_at_)somewhere(_dot_)com", but is often used anyway.

And that is why one does not insert ":.*" after procmail's ^TO or ^TO_
tokens.  They already expand to full regexps that include the colon plus an
expression which makes sure that the search text will match only if it begins
at the start of a word (for ^TO) or at the start of an address (for ^TO_).

"Linux Learner" should try this:

* ^TO_you(_at_)somewhere\(_dot_)com

if his/her procmail version supports ^TO_; otherwise,

* ^TOyou(_at_)somewhere\(_dot_)com

will work almost all the time.

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