Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi
I have a bunch of emails sended to me through a web-service that all have (obviously) the same sender, i.e. www-data to my Gmail account.
Is there a way that I could download all these emails (I mean both the title and the content) locally so as to parse them and read the results I want?
Thank you!

Replies are listed 'Best First'.
Re: Download all emails from the same sender locally?
by marto (Cardinal) on Oct 25, 2013 at 12:28 UTC

    Mail::Box provides takemail which searches a mailbox for various user defined criteria (in your case you'd use sender), it can dump matches to stdout. If this does not suit your requirements it shouldn't be too difficult to throw something together using Mail::Box.