I'm trying to parse emails sent to a collection box by usernames in which the messsage was sent to.
For example, a msg was sent to bob@iscool.com and bob userid was unknown to the server, it is rerouted to a collection box, drop@iscool.com.
My script will go through drop@iscool.com and find all msgs addressed to bob and move it else where.
Now my problem is when there is mailing lists involved. I cannot parse emails in which the headers doesn't show who it is adressed to. The headers below is copied from a msg sent from a mailing list that arrives in my account. How was the email able to determine what user on the domain to address to?
Date: Thu, 15 Jul 1999 21:40:59
Subject: Add Me! Newsletter #46 - Creating A Buzz
To: "Add Me! Newsletter" <addmenewsletter@lists.dundee.net>
From: newsletter@addme.com
List-Unsubscribe: <mailto:leave-addmenewsletter-1813539H@lists.dundee.net>
Reply-To: "Add Me! Newsletter" <addmenewsletter@lists.dundee.net>