On Tue, Oct 2, 2012 at 4:59 PM, Mark Fowler <m...@twoshortplanks.com> wrote: > 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)
Courriel is pretty good at email parsing - but if you need just the attachment and it is always encoded in the same way - then the versatility of Courriel is not a bit advantage. As far as I remember Courriel does not do any of the other tasks. Z. -- Zbigniew Lukasiak http://brudnopis.blogspot.com/ http://perlalchemy.blogspot.com/