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

