Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Which JavaMail API actually fetches mails from mail server to the application ????  RSS feed

 
swap Inam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to find out which of the JavaMail API's actually fetches the mails from the Mail Server to the Application that fires the JavaMail API,
I am unable to understand which of the following API's actually does it ?
(1) Store.getFolder("INBOX");
(2) getSession().getStore(..)
(3) Folder.getMessageCount(..);
(4) Folder.getMessages(1, totalMessages);

The reason for my confusion is evenif I shutdown the mail server and debug these API's from debugger,
these API's don't throw any exceptions

Any help in this regard is appreaciated

Thanks
Swap
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!