Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to get started with scraping my IMAP emailsby bliako (Monsignor) |
on Mar 01, 2022 at 15:44 UTC ( [id://11141730]=note: print w/replies, xml ) | Need Help?? |
Thank you all for your insights and shared code. I have not replied since because I am still struggling with this. I have solved the first part: fetching a message from server, thanks to your input. I do something like this:
I am still struggling with the 2nd part: unwrap a message to local disk, each attachment on its own file. And I am looking for a way to do that seemingly simple and solved-by-now problem either by MIME::Parser or some other package. Alas the prospects look bleak. The above was put together with code from NERDVANA, Discipulus, talexb ! p.s. edit: my bandwidth is very limited so in order to test this I have setup a minimal mail server (dovecot) in my linux box without the ability to smtp or ssl (to keep things simple). I have used thunderbird in order to copy my multipart test email from a "real" email account's INBOX to the localhost dummy (using 'copy to' in thunderbird) and now I can do the testing without using the net or bothering my MailSP. Of course I could have just saved the email into a file and read from there ...
In Section
Seekers of Perl Wisdom
|
|