procmail
[Top] [All Lists]

Re: matching addr in msg body for formail

2003-11-12 18:12:30
On Wed, 12 Nov 2003, deb wrote:

I want to match two addrs in the message below,

      This-soandso(_at_)somdom(_dot_)com
      ThatsoandSo(_at_)somdom(_dot_)com

But I can't seem to figure out how to do this in a recipe.

You could get the smartlist sources and play with multigram.

Or, grab <http://www.well.com/user/barts/email/rfc822rc.txt>.

Then something like this should work ...

-----
INCLUDERC=rfc822rc.txt

:0 B
* $ ()\/${routeaddr__} requests that you approve
* MATCH ?? ()\/${addrspec__}
{ REQUESTOR="$MATCH" }

:0 B
* $ unsubscribe .+ \/${addrspec__}
{ UNSUBSCRIBE="$MATCH" }
-----


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail