|Don't ask to ask, just ask|
Saving attachments from email filesby inblosam (Monk)
|on May 02, 2005 at 17:00 UTC||Need Help??|
inblosam has asked for the wisdom of the Perl Monks concerning the following question:
I need to save attachments from emails using Mail::POP3Client. I need to decode base64 files and then save, and other attachments just save them as is. Is there something that I haven't found that does this better than doing it myself? The text file contains the headers for the email, the body of the email, and then for each attachment a small header like these (2 attachments):
Here is my POP3Client script that right now returns the subject and from, and saves the whole email as a file.
Can anyone advise? I need to be able to handle multiple files too, and pretty much any type of attachment.
Thanks in advance!