Getting a message count |
Upon establishing a connection to a POP3 server you can retrieve a count of messages in the account mailbox by invoking the Pop#getMessageCount method.
Example
// establish connection pop.connect();
// get number of messages int count = pop.getMessageCount(); |