Email attachments with Perl

Mark Fowler mark at twoshortplanks.com
Tue Oct 2 15:59:10 BST 2012


So my wireless scanner/printer doohicky can send its scans to an email address as a PDF attachment.  These are currently piling up in a custom google mail account I have for this purpose. 

I want to automatically download the PDFs to my mac with a Perl script that I'll trigger periodically from launchd.

What are the cool kids using do to this now?  Net::*?  Email::*?  Courriel?  Something else?

To be clear, my requirements are approximately:

- Talk IMAP
- Download mail
- Extract the attachment
- Delete the mail

(I don't care about the text part of the email, nor the subject, just the attachment)

Any ideas?

Mark.

-- 
Mark Fowler
http://www.twoshortplanks.com/




More information about the london.pm mailing list