Soren Dayton | 1 Dec 1996 22:04
Favicon

Re: Address ONLY Match/Variable Recipe?

Doctor <at> netcom.com (The Doctor {Who?}) writes:

> I've tried one I had from a library, but it doesn't seem to work under
> procmail 3.11pre4.  (It seemed terribly complicated, and for some reason, is
> bringing the included rc's filepath as part of the string to match on.)
> 
> 
> (*) Basically, this is to say either of these:
> address <at> system.net
> address <at> system.net (Nick Name)
> Nick Name <address <at> system.net>
> 
> I need ONLY the "address <at> system.net" part of the samples above parsed out.

errrrr.  Formail to the rescue:

echo 'From: Nick Name <address <at> system.net>' | formail -rtz -xTo:

gives me:

address <at> system.net

Soren


Gmane