List Information about folder
This Example shows you how to show folder information. In this code we have used method of Folder class to retrieve information about folder where mail is stored.
Replying to messages using Java mail
This Example shows you how reply to message using javamail api. The Message class have a reply() method to configure a new Message with the proper recipient and subject, adding "Re: " if not already there.