- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: perl pop3 function for pop.gmail.com
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2012 12:01 AM
05-11-2012 12:01 AM
perl pop3 function for pop.gmail.com
Hi ,
I need a perl function to count the total number of messages in my gmail inbox using nte::pop3:sslwrapper
pop server pop.gmail.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2012 01:13 AM
05-14-2012 01:13 AM
Re: perl pop3 function for pop.gmail.com
As the name says, net::pop3::sslwrapper is a wrapper for net::pop3, so it should have all the functionality net::pop3 has.
The documentation for any well-known Perl module can be found at cpan.perl.org. Here's the documentation for net::pop3:
http://search.cpan.org/~gbarr/libnet-1.22/Net/POP3.pm
Looking at the documentation, the popstat() method should be suitable. Or the list() method, if you also need the sizes of the messages.
If you want to know about folders other than the literal inbox, that is not possible: this is not a limitation of net::pop3 but a design limitation of the POP3 protocol itself. (To handle server-side folders, you need to use IMAP instead of POP.)