parsing email headers

2010-03-24 Thread Paul Rogers
I started on a venture to parse POP3 email headers and I wrongly assumed perl would make that task easy...surely someone in the perl community has a piece of code to make parsing email headers trivial? Apparently not, at least not from what I've seen. My ultimate goal is to delete POP3 emails

RE: parsing email headers

2010-03-24 Thread Tobias Hoellrich
Message- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Paul Rogers Sent: Wednesday, March 24, 2010 8:19 AM To: perl-win32-users@listserv.ActiveState.com Subject: parsing email headers I started on a venture to parse

RE: parsing email headers

2010-03-24 Thread Paul Rogers
Thank you for your reply. I suppose I should have been a bit more specific. I have indeed been using Mail::POP3Client. However, it's the dates that I think could prove tricky. The code down below does indeed narrow down to the date (assuming I work with the Date: header). Dates appear to be

RE: parsing email headers

2010-03-24 Thread Tobias Hoellrich
for those dates as well. Cheers - Tobias From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Paul Rogers Sent: Wednesday, March 24, 2010 9:17 AM To: perl-win32-users@listserv.ActiveState.com Subject: RE: parsing email headers

RE: parsing email headers

2010-03-24 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Paul Rogers Sent: 24 March 2010 15:17 To: perl-win32-users@listserv.ActiveState.com Subject: RE: parsing email headers Thank you for your reply. I suppose I should

RE: parsing email headers

2010-03-24 Thread Paul Rogers
Brian Raven wrote: CPAN is your friend. For example, I tried http://search.cpan.org/search?query=datetime%3A%3Aformatmode=all, and on the fourth page I saw DateTime::Format::Mail, which sounds pretty much like what you are asking for. BTW, it seems to be available vie ppm as well.