Discussion:
Read email
Danny Wong (dannwong)
2014-08-22 00:52:20 UTC
Permalink
Hi Perl Gurus,
What is the best module to use to read incoming emails from a particular
user? Any examples would be great to! Thanks!
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
Ken Peng
2014-08-22 01:21:46 UTC
Permalink
It depends. If going with pop3 protocal,
http://search.cpan.org/~shay/libnet-1.27/Net/POP3.pm

If going with IMAP protocal, then try search,
http://search.cpan.org/search?query=imap&mode=all

Also there are the modules for special providers,
http://search.cpan.org/~dannyt/WWW-Gmail-1.0/lib/WWW/Gmail.pm #gmail
http://search.cpan.org/~johnsca/MailClientYahoo-1.0/lib/Mail/Client/Yahoo.pm
#yahoo

Gmail supports a non-standard IMAP. but yahoo now supports the standard
pop3 and imap for free, so using the common pop3/imap protocal to fetch
mails is right.
Post by Danny Wong (dannwong)
What is the best module to use to read incoming emails from a particular
user? Any examples would be great to! Thanks!
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
lee
2014-08-31 00:29:02 UTC
Permalink
Post by Danny Wong (dannwong)
Hi Perl Gurus,
What is the best module to use to read incoming emails from a particular
user? Any examples would be great to! Thanks!
It depends on what you consider "read". There's an example that uses
Net::IMAP::Client at https://github.com/lee-/imapsize

There are also modules on CPAN to "read" an email, like having it around
in a file from which you want to extract, say, the Subject: header.

To decode attachments contained in emails, uudeview appears to be
extremely useful.
--
Knowledge is volatile and fluid. Software is power.
--
To unsubscribe, e-mail: beginners-***@perl.org
For additional commands, e-mail: beginners-***@perl.org
http://learn.perl.org/
Loading...