Showing results for 
Search instead for 
Did you mean: 

perl pop3 function for

Super Advisor

perl pop3 function for

Hi ,


I need a perl function to count the total number of messages in my gmail inbox using nte::pop3:sslwrapper


pop server






Honored Contributor

Re: perl pop3 function for

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 Here's the documentation for net::pop3:


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.)