Getting a message count

Top  Previous  Next

Upon establishing a connection to an IMAP server you can retrieve a count of messages in the account mailbox by invoking the Imap#getMessageCount method.

 

Example

 

// establish connection

imap.connect();

 

// get number of messages in mailbox

int count = imap.getMessageCount();





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC