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.

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. Some of these methods are....

getName()is an abstract method and returns name of the folder of
String type.getFullName()returns the String type full name of foldergetURLName()returns the URL name representing this folder of URLNametype.getMessageCount()returns an integer value that represent total number of
messages in this folder.getNewMessageCount()returns an integer value that represent total number
of new messages in this folder.getUnreadMessageCount()returns an integer value that represent total
number of unread messages in this folder.