Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail :: Accessing Gmail using POP3, SSL  RSS feed

Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I am trying to access my gmail, using the POP3 and SSL.
I am able to connect to the pop server of gmail. When I try to read the content from the Inbox folder, using the code snippet below

Here, both the getMessageCount() and getUnreadMessageCount() methods return a value of "-1".....not sure, as to what is going wrong.

I would really appreciate, if someone can help me out in this regard!!

P.S : I have also tried with folder.getNewMessageCount()...same result
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!