Problem with getting message count using JavaMail API

257 views
Skip to first unread message

Navi

unread,
Aug 26, 2008, 9:55:49 AM8/26/08
to Gmail-Users
I am trying to read messages from INBOX using JavaMail API.
Using pop protocal, folder.getMessageCount() is returning 308 but I
have thousands of messages in my INBOX.But this problem is only with
gmail server and as the same works fine with other mail server.
Also I had checked pop settings its enabled for all mails.
Any idea about this behavior of gmail?

bkennelly

unread,
Aug 26, 2008, 12:10:40 PM8/26/08
to Gmail-Users
Gmail's POP server only makes the messages available in batches of a
few hundred at a time. Try IMAP, if JavaMail supports it.
Reply all
Reply to author
Forward
0 new messages