procmail
[Top] [All Lists]

Re: TO_ macro

1997-05-22 01:09:00
Ralph Sims writes on 21 May 1997 at 19:54:40
1.  What conforms most closely to the TO_ macro for "from" fields?  The
corresponding one would probably have been called FROM_ if it were

This discussion comes up every so often - Stephan has indicated that
there will not be a FROM_ macro in procmail.  The work-around I
gleaned from a previous iteration of this discussion is
   # 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_)])?))"

   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>