procmail
[Top] [All Lists]

Re: multiple addresses in To and Cc lines

1998-04-21 15:22:49
At 03:19 PM 4/21/98 -0500, Linux Learner wrote:

From:  me(_at_)mycomputer(_dot_)org
To:  My Best Friend <you(_at_)somewhere(_dot_)com>

-OR-

From:  me(_at_)mycomputer(_dot_)org
To:  me(_at_)somewhere(_dot_)com, you(_at_)somewhere(_dot_)com

I would think this would do it, matching it exactly:

* ^TO:.*[       ,<]you(_at_)somewhere(_dot_)com

(space/tab/comma/GT) in the brackets.  This says "match zero or more of
anything up to the you(_at_)somewhere(_dot_)com text, with any one of the 
specified
characters immediatley preceeding it.  This should match either of the two
examples you gave, but there may be some addressing schemes which it might
puke on.

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

---
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

 Sean B. Straw / Professional Software Engineering
 Post Box 2395 / San Rafael, CA  94912-2395

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