The addresses would later be tested against the database later so if we didn't find it 
in the database then nothing would happen.

We just want to filter out most of the bad email addresses.

Are we talking string manipulation here or am I going to have to get a regex book?
  ----- Original Message ----- 
  From: Oliver Tomkins 
  To: [EMAIL PROTECTED] 
  Sent: Friday, June 20, 2003 10:03 AM
  Subject: [cfmail] RE: [ cf-dev ] Get an email address out of a block of text


  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