Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Downloading attachments from IMAP using Perl

by ewhitt (Scribe)
on Jul 13, 2008 at 11:31 UTC ( #697321=perlquestion: print w/replies, xml ) Need Help??
ewhitt has asked for the wisdom of the Perl Monks concerning the following question:

Could anyone recommend a Perl module that supports IMAP w/ TLS/SSL that supports downloading of attachments? I have been looking at Mail::IMAPClient, but I am not sure if it will do it (yet). I am still playing with it. I am trying to check for emails every 5 mintues (via cron) and download any new messages with "PIC" in the subject from Gmail. Any suggestions? Thanks!
  • Comment on Downloading attachments from IMAP using Perl

Replies are listed 'Best First'.
Re: Downloading attachments from IMAP using Perl
by massa (Hermit) on Jul 13, 2008 at 12:36 UTC
    Net::IMAP::TLS + Email::MIME should solve your problem...
    []s, HTH, Massa
Re: Downloading attachments from IMAP using Perl
by aufflick (Deacon) on Jul 13, 2008 at 12:21 UTC
    This isn't perl, but a very long time ago I used the mailutils part of the UW imap suite to great success, and it does support TLS/SSL.

    It's a collection of C utilities that would be easy to script, or you could borrow their code to make an XS api:

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://697321]
Approved by wfsp
[LanX]: ha ... just read an article saying that some US presidents in the past lost their nuclear codes
[LanX]: xD
[Corion]: The code is 00000000, as always, no?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-01-20 12:36 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (174 votes). Check out past polls.