take an email from feedback loops coming from AOL.
They come in the following format:
<
Forwarded message originally sent to
This is an email abuse report for an email message received from IP address [login to view URL] on Mon, 28 Jul 2008 12:49:57 -0400
For information, please review the top portion of the following page:
[login to view URL]
For information about AOL E-mail guidelines, please see
[login to view URL]
If you would like to cancel or change the configuration for your FBL please contact our postmaster help desk. Up to date contact information for the postmaster help desk is located at
[login to view URL]
Feedback-Type: abuse
User-Agent: AOL SComp
Version: 0.1
Received-Date: Mon, 28 Jul 2008 12:49:57 -0400
Source-IP: [login to view URL]
Reported-Domain: [login to view URL]
Redacted-Address: redacted
Redacted-Address: redacted@
[the full content of the email]
>
Each mail contains a footer that contains the following which you could use to extract the email address:
<
You registered from IP on to receive special
promotions and supplied email address
>
I then want the email addresses added to a txt file. The feedback emails can be forwarded to any email address you want. The feedback mails come with 3 attachments with the 3 different parts of the mail. The first one comes as a text file which contains:
This is an email abuse report for an email message received from IP address [login to view URL] on Mon, 28 Jul 2008 12:49:57 -0400
For information, please review the top portion of the following page:
[login to view URL]
For information about AOL E-mail guidelines, please see
[login to view URL]
If you would like to cancel or change the configuration for your FBL please contact our postmaster help desk. Up to date contact information for the postmaster help desk is located at
[login to view URL]
The second is a text file which contains:
Feedback-Type: abuse
User-Agent: AOL SComp
Version: 0.1
Received-Date: Mon, 28 Jul 2008 12:49:57 -0400
Source-IP: [login to view URL]
Reported-Domain: [login to view URL]
Redacted-Address: redacted
Redacted-Address: redacted@
And the third attachment is the actual email in .eml format.