Code Comments
Programming Forum and web based access to our favorite programming groups.I'm have a email in a text file. From this file I would like to get the sender information, the attached files and the body of the e-mail. Is there something simple to do this? Marcos
Post Follow-up to this message> I'm have a email in a text file. From this file I would like to get the > sender information, the attached files and the body of the e-mail. > > Is there something simple to do this? > > Marcos > Check out the MIME::Parser or Mail::Box modules from CPAN. There are others probably but these two I have used. http://danconia.org
Post Follow-up to this messageAnd the clouds parted, and Wiggins d Anconia said... > > > Check out the MIME::Parser or Mail::Box modules from CPAN. There are > others probably but these two I have used. > I'll second the nomination for Mail::Box. I'm using it to parse a collection of emails for processing on the headers and body and it works like a charm! HTH- Brian / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ | Brian Gerard Duct tape is like the Force. It has | | First initial + 'lists' a light side and a dark side and | | at technobrat dot com it holds the universe together. | \_______________________________________ _______________________________/
Post Follow-up to this messageMarcos.Rebelo@eurocopter.com <Marcos.Rebelo@eurocopter.com> asked: > I'm have a email in a text file. From this file I would like > to get the sender information, the attached files and the > body of the e-mail. > > Is there something simple to do this? Yeah. MIME::Parser from the MIME-tools distribution. HTH, Thomas
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.