procmail
[Top] [All Lists]

Re: Cant filter 2 people into a folder.

1997-08-06 08:12:00
Mike A. Harris writes on 5 August 1997 at 21:18:57
[...]
:0:
* ^FROMjoe(_at_)somewhere(_dot_)com
FRIENDS

Did you read the "procmailrc" man page?  I didn't find any mention of
^FROM in mine, is there such a thing in yours?  Assuming there isn't,
you might try  the following macro instead 
   # Like procmail's ^TO, but for From: and CC: lines
   # The extra outer layer of parentheses are so that one can use forms like
   # ${FROM}* or ${FROM}+ or ${FROM}?.
   CC="(^((Original-)?(Resent-)?(Cc|Bcc)):(.*[^a-zA-Z])?)"
   FROM="(^((X-(Envelope-)?)?(Apparently-|Resent-)*(From|Reply-To|Sender):\
   (.*[^-a-z0-9_])?|From ([^    ]*[-_(_at_)!(_dot_)])?))"
which would be
   :0:
   * $${FROM}joe(_at_)somewhere\(_dot_)com
   FRIENDS

   Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>        
http://www.bristol.com/~DanS
Bristol Technology B.V.                   +31 33 450 50 50, ...51 (FAX)
Amersfoort, The Netherlands               {info,jobs}(_at_)bristol(_dot_)com

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