You might have an issue there.  I have seen bounces coming back with the actual 
postmaster (or similar) address within the body of the email as well.  So how do you 
distinguish?

Tried to do something similar in a previous position, but as there is no real standard 
for what constitutes a decent bounce message we ended up doing in manually (when we 
could be bothered).  Having said that we were not mailing on that scale.



-----Original Message-----
From: Allan Cliff [mailto:[EMAIL PROTECTED]
Sent: 20 June 2003 08:59
To: CF - List
Subject: [ cf-dev ] Get an email address out of a block of text


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----------------------------------------------------------------------

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to