Interface IIMAPFolder
public interface IIMAPFolder
IMAP Folder interface
Can :
- check own existence and open status
- return name
- count messages
- provide list of messages
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getMessagesByFlag
(IIMAPFlag flag, boolean value) return list of messages with a specific flag set or not
-
Method Details
-
countTotalMessage
int countTotalMessage()- Returns:
- the total number of messages in this folder
-
countNewMessage
int countNewMessage()- Returns:
- the total number of messages with NEW flag
-
countUnreadMessage
int countUnreadMessage()- Returns:
- the total number of messages without READ flag
-
getFolderName
String getFolderName()- Returns:
- this folder name
-
getFullFolderName
String getFullFolderName()- Returns:
- this folder name with complete path
-
getMessages
Collection<IIMAPMessage> getMessages()- Returns:
- Collection of folder messages
-
getMessagesByFlag
return list of messages with a specific flag set or not- Parameters:
flag
-IIMAPFlag
value
- boolean- Returns:
- list of IIMAPMessage
-