procmail
[Top] [All Lists]

Re: help w/procmail recipe

2002-09-09 20:26:48
* Jon Bernard <jbernard(_at_)roanoke(_dot_)edu> [09-09-02 20:05]:
Here are some examples of headers of messages I'm trying to match against:

  Sender: announcement list <CS5704_91420(_at_)listserv(_dot_)vt(_dot_)edu>
  Sender: announcement list <CS5204_91412(_at_)listserv(_dot_)vt(_dot_)edu>
  Sender: vegroup Discussion List <VEGROUP(_at_)listserv(_dot_)vt(_dot_)edu>

I want to throw all email from *(_at_)listserv(_dot_)vt(_dot_)edu into it's 
appropriate
folder. Here is the recipe I've written:

  :0:
  * ^Sender:.*<\/@listserv.vt.edu[^ >`';]+
  lists/`echo $MATCH | sed -e 's/[\/]/_/g' | tr A-Z a-z`

Wouldn't this be simpler??:

  :0:
  * ^Sender.*listserv.vt.edu
  where/to/put/it
  
-- 
Patrick Shanahan
Registered Linux User #207535 
      @ http://counter.li.org
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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