public class DefaultFolder extends IMAPFolder
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommandHOLDS_FOLDERS, HOLDS_MESSAGES, READ_ONLY, READ_WRITE| Modifier and Type | Method and Description |
|---|---|
void |
appendMessages(Message[] msgs)
Append the given messages into this folder.
|
boolean |
delete(boolean recurse)
Delete this folder.
|
Message[] |
expunge()
Expunge all messages marked as DELETED.
|
Folder |
getFolder(java.lang.String name)
Get the named subfolder.
|
java.lang.String |
getName()
Get the name of this folder.
|
Folder |
getParent()
Get this folder's parent.
|
boolean |
hasNewMessages()
Check whether this folder has new messages.
|
Folder[] |
list(java.lang.String pattern)
List all subfolders matching the specified pattern.
|
Folder[] |
listSubscribed(java.lang.String pattern)
List all subscribed subfolders matching the specified pattern.
|
boolean |
renameTo(Folder f)
Rename this folder.
|
addACL, addMessageCountListener, addMessages, addRights, appendUIDMessages, close, copyMessages, copyUIDMessages, create, doCommand, doCommandIgnoreFailure, doOptionalCommand, exists, expunge, fetch, forceClose, getACL, getAttributes, getDeletedMessageCount, getFullName, getHighestModSeq, getMessage, getMessageByUID, getMessageCount, getMessages, getMessagesByUID, getMessagesByUID, getMessagesByUIDChangedSince, getNewMessageCount, getPermanentFlags, getQuota, getSeparator, getSortedMessages, getSortedMessages, getStatusItem, getType, getUID, getUIDNext, getUIDNotSticky, getUIDValidity, getUnreadMessageCount, handleResponse, id, idle, idle, isOpen, isSubscribed, listRights, moveMessages, moveUIDMessages, myRights, open, open, removeACL, removeRights, search, search, setFlags, setFlags, setFlags, setQuota, setSubscribedaddConnectionListener, addFolderListener, addMessageChangedListener, close, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, toStringpublic java.lang.String getName()
IMAPFoldergetName in class IMAPFolderpublic Folder getParent()
IMAPFoldergetParent in class IMAPFolderpublic Folder[] list(java.lang.String pattern) throws MessagingException
IMAPFolderlist in class IMAPFolderpattern - the match patternFolderNotFoundException - if this folder does
not exist.MessagingException - for other failuresFolder.listSubscribed(java.lang.String)public Folder[] listSubscribed(java.lang.String pattern) throws MessagingException
IMAPFolderlistSubscribed in class IMAPFolderpattern - the match patternFolderNotFoundException - if this folder does
not exist.MessagingException - for other failuresFolder.list(java.lang.String)public boolean hasNewMessages()
throws MessagingException
IMAPFolderhasNewMessages in class IMAPFolderFolderNotFoundException - if this folder does
not exist.MessagingException - for other failurespublic Folder getFolder(java.lang.String name) throws MessagingException
IMAPFoldergetFolder in class IMAPFoldername - name of the FolderMessagingException - for failurespublic boolean delete(boolean recurse)
throws MessagingException
IMAPFolderdelete in class IMAPFolderrecurse - also delete subfolders?FolderNotFoundException - if this folder does
not existMessagingException - for other failuresFolderEventpublic boolean renameTo(Folder f) throws MessagingException
IMAPFolderrenameTo in class IMAPFolderf - a folder representing the new name for this FolderFolderNotFoundException - if this folder does
not existMessagingException - for other failuresFolderEventpublic void appendMessages(Message[] msgs) throws MessagingException
IMAPFolderappendMessages in class IMAPFoldermsgs - array of Messages to be appendedFolderNotFoundException - if this folder does
not exist.MessagingException - if the append failed.public Message[] expunge() throws MessagingException
IMAPFolderexpunge in class IMAPFolderFolderNotFoundException - if this folder does not
existMessagingException - for other failuresMessage.isExpunged(),
MessageCountEventCopyright © 2010 - 2023 Adobe. All Rights Reserved