procmail
[Top] [All Lists]

Re: Catching an e-mail address from text of message

1997-07-11 00:18:00
On Thu, 10 Jul 1997 23:16:12 -0400 (EDT),
Brock Rozen <brozen(_at_)webdreams(_dot_)com> wrote:
On Thu, 8 May 1997, era eriksson wrote:
:0
* ^From: Mailer-daemon(_at_)aol(_dot_)com
* 550 \/[^ ]* .*
But the following should suffice if you want only something fairly
close to the given example (i.e. only AOL bounces):
* ^ *550 \/[^ ]* .*
{
    * MATCH ?? ^^[^ ]+
}
Now what if I'm trying to match the address here (slightly different from
AOL's format in that it's encased by the arrows)?

Then you add the arrows. (They're usually called "angle brackets" or
"brokets", BTW.)

550 <Romimu(_at_)concentric(_dot_)net>... User unknown

:0
* ^FROM_MAILER
* ^Subject: bounce something, or what have you
* B ?? ^[       ]*550[   ]<\/[^>]+
.... actions

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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