procmail
[Top] [All Lists]

Catching an e-mail address from text of message

1997-05-08 06:31:00
Hi,

I'd like to catch the e-mail address listed after the 550 and none of the
text after it.

I'm trying to use this, but it catches the text after the address also.

:0
* ^From: Mailer-daemon(_at_)aol(_dot_)com
* 550 \/[^ ]* .*
| /usr/users/brozen/bin/pg/pgrem -q $MATCH


Thanks,

 ------------------------------------------------------------------------- 
 | Brock Rozen | brozen(_at_)webdreams(_dot_)com | 
http://www.webdreams.com/~brozen | 
 ------------------------------------------------------------------------- 


---------- Forwarded message ----------
Date: Thu, 8 May 1997 06:30:52 -0400 (EDT)
From: Mailer-daemon(_at_)aol(_dot_)com
To: owner-lifeline(_at_)torah(_dot_)org
Subject: Returned Mail: Undeliverable

The mail you sent could not be delivered to:
550 stefg9(_at_)aol(_dot_)com is not a known user

The text you sent follows:

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