Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Extracting attachments from an IMAP mailbox

by parvezp (Initiate)
on Mar 20, 2008 at 12:07 UTC ( [id://675202]=perlquestion: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
Re: Extracting attachments from an IMAP mailbox
by hipowls (Curate) on Mar 20, 2008 at 12:37 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://675202]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found