This will get everything inside the "(" ")" that has a "@" in it.

(?<=\()[EMAIL PROTECTED](?=\))

This is not supported in CF alone... And I am short on time, or I would show
you the Java method... 

Can anyone else finish this?  Or suggest a better solution?


.......................
Ben Nadel 
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-----Original Message-----
From: Rey Bango [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 4:21 PM
To: CF-Talk
Subject: Extract email(s) from non-delivered message

I need to extract emails from non-delivered messages. Anyone have some
sample code they'd be willing to share in order to get this done? Below is a
sample of the non-delivery notice. Notice how it has 3 emails embedded into
it. I need to grab those. Before I go off and write something, I'd like to
see if there's something already built to handle
this:

---- Original Message ----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Delivery failure
Date: Tue, 18 Apr 2006 10:28:23 -0500

 >Message from yahoo.com.
 >Unable to deliver message to the following address(es).
 >
 ><[EMAIL PROTECTED]>:
 >This user doesn't have a yahoo.com account ([EMAIL PROTECTED]) [0]  >
 ><[EMAIL PROTECTED]>:
 >This user doesn't have a yahoo.com account ([EMAIL PROTECTED]) [0]  >
 ><[EMAIL PROTECTED]>:
 >This user doesn't have a yahoo.com account ([EMAIL PROTECTED]) [-5]  >
 >--- Original message follows.
 >
 >X-Originating-IP: [72.3.251.114]
 >Return-Path: <[EMAIL PROTECTED]>
 >Authentication-Results: mta120.mail.mud.yahoo.com  >
from=tropicaltraditions.com; domainkeys=neutral (no sig)
 >Received: from 72.3.251.114  (EHLO 62763-web1.dfw.intensive.int)
 >(72.3.251.114)
 >  by mta120.mail.mud.yahoo.com with SMTP; Tue, 18 Apr 2006 08:28:21
>-0700
 >Received: from [127.0.0.1] (unverified [209.42.54.129]) by
>tropicaltraditions.com  > (Rockliffe SMTPRA 6.1.22) with ESMTP id
><[EMAIL PROTECTED]> for
><[EMAIL PROTECTED]>;
 > Tue, 18 Apr 2006 10:27:52 -0500
 >Message-ID: <[EMAIL PROTECTED]>
 >Date: Tue, 18 Apr 2006 11:27:56 -0400
 >From: Rey Bango <[EMAIL PROTECTED]>
 >User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
 >X-Accept-Language: en-us, en
 >MIME-Version: 1.0
 >To:  [EMAIL PROTECTED]
 >Subject: Test to see if emails bounce
 >Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 >Content-Transfer-Encoding: 7bit
 >Sender: [EMAIL PROTECTED]
 >
 >Test to see if emails bounce
 >
 >
 >*** MESSAGE TRUNCATED ***




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238046
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to