parvezp has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
We have an application which reads mails from an IMAP mailbox. I am using Mail::IMAPClient ver2.29 for this task.
Is there a way to extract attachments sent along with the mails to this mailbox?
I cant see any such thing in the module documentation.
Please help
Thanks,
Parvez
Comment on Extracting attachments from an IMAP mailbox
You use Mail::IMAPClient to retrieve messages. To parse them you need another tool, take a look at MIME::Tools, it will do what you want. There is an example script, examples/mimeexplode that shows how to disassemble a multipart message.