|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Retrieving email and decoding attachmentsby jlongino (Parson) |
| on Sep 26, 2002 at 06:56 UTC ( #200826=note: print w/ replies, xml ) | Need Help?? |
|
This script should do what you want. I looked at several modules trying to find one that does everything, but lately I find that most mail related modules do one or two very specific things well, but for anything but the simplest tasks end up using more than one to get the job done. In this case, Mail::POP3Client is a good POP3 access tool but MIME::Parser is hard to beat for saving attachments to disk: BTW, this was done hastily and could use more error testing, could probably be done more simply/elegantly, but I leave that for the poster. Does anyone know how to read the messages directly to MIME::Parser without having to write the intermediate files first? I've encountered this dilemma recently trying to combine other unrelated mail modules. --Jim
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||