What I am trying to do is the following.
Every so often we send out tens of thousands of emails and a few thousand of these
come back either as invalid mail address, full mailbox or incorrect syntax of email.
So what I want to do is schedule cfpop to take these off the server and then look in
the body of these emails and get the culprit out. Then mark them in the database so
they have to enter a correct mail address.
So how would I go about getting the email address out of the following example.
Also bear in mind that every mail host sends a different kind of mail so the text
block will always be different.
----------------------------------------------------------------------
Reporting-MTA: Arrival-Date: Fri, 20 Jun 2003 02:01:01 +0000 (GMT)
Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host abcdef.whitehouse.com[65.39.178.33] said: 554
<[EMAIL PROTECTED]>: Recipient address rejected: Account
expired----------------------------------------------------------------------