aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes getMessage() of Folder class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "getMessage() of Folder class" Watch "getMessage() of Folder class" New topic

getMessage() of Folder class

vasu patnaik

Joined: Jul 07, 2005
Posts: 1
Hi all,

While executing the getMessage() ,no exception is thrown but the rest of the steps is being skipped off, what is the reason for this? can any one throw some light in this regard.

Note ; All these codes are inside a try catch block.

javax.mail.Session session = javax.mail.Session.getInstance(System.getProperties(), null);

javax.mail.Store store = session.getStore("pop3");

store.connect() // connection was made successfully .

javax.mail.Folder folder = store.getFolder("INBOX");;

folder.getMessageCount(); // Im able to get the number of messages in the folder

emailMessage = folder.getMessage(EMailIndex);// but here im not able to get the message as well the next lines are skipped of and still no exception is thrown ,i debugged for all those 4 possible exception thrown by this method.

Thanks in advance
I agree. Here's the link:
subject: getMessage() of Folder class
Similar Threads
Round up question #132
Issue with Download using ZipOutputStream
exit currently running program?
How to use implict object exception
Code beeing skipped.