http://www.perlmonks.org?node_id=697326


in reply to Downloading attachments from IMAP using Perl

Net::IMAP::TLS + Email::MIME should solve your problem...
[]s, HTH, Massa