The exact procedure probably depends a lot on the webmail service
provider and/or webmail software... Most of them require you to go
through several hoops (i.e. pages, dialog boxes, etc.) to download the
attachment. WWW::Mechanize would probably be a good start to
automatize the steps.
But before going into that, have you made sure that you really can't access the mail
in any other way, e.g. POP3 or IMAP?
| [reply] |
It depends on what access you have: I use Net::POP3 quite successfully to process mail programmatically. If the mailboxes aren't fronted by a POP3 server, it would be of no use, though.
| [reply] |
I use the POP3
I have seen the Net::POP3 module
but can't extract the attachment file
| [reply] |
I use the POP3
I have seen the Net::POP3 module
It's always a good idea to include important details right from the start... :)
but can't extract the attachment file
Same here. What exactly is the problem? Is the attachment missing
entirely? Are you unable to decode its transfer encoding (e.g. base64),
etc.? Could you provide some complete (but short) raw example message,
and possibly also some actual code, so we have an idea of what you've
tried so far, and where you're stuck?
| [reply] |
WWW:Mechanize is probably what you want. But if that doesn't work then you should think about forwarding these emails to somewhere were you have file or pop access
| [reply] |