Which JavaMail API actually fetches mails from mail server to the application ????
posted 9 years ago
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