public class DefaultFolder extends IMAPFolder
IMAPFolder.FetchProfileItem, IMAPFolder.ProtocolCommand
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, create, doCommand, doCommandIgnoreFailure, doOptionalCommand, exists, expunge, fetch, forceClose, getACL, getAttributes, getDeletedMessageCount, getFullName, getMessage, getMessageByUID, getMessageCount, getMessagesByUID, getMessagesByUID, getNewMessageCount, getPermanentFlags, getQuota, getSeparator, getSortedMessages, getSortedMessages, getType, getUID, getUIDNext, getUIDValidity, getUnreadMessageCount, handleResponse, idle, idle, isOpen, isSubscribed, listRights, myRights, open, removeACL, removeRights, search, search, setFlags, setFlags, setFlags, setQuota, setSubscribed
public java.lang.String getName()
IMAPFolder
getName
in class IMAPFolder
public Folder getParent()
IMAPFolder
getParent
in class IMAPFolder
public Folder[] list(java.lang.String pattern) throws MessagingException
IMAPFolder
list
in class IMAPFolder
MessagingException
public Folder[] listSubscribed(java.lang.String pattern) throws MessagingException
IMAPFolder
listSubscribed
in class IMAPFolder
MessagingException
public boolean hasNewMessages() throws MessagingException
IMAPFolder
hasNewMessages
in class IMAPFolder
MessagingException
public Folder getFolder(java.lang.String name) throws MessagingException
IMAPFolder
getFolder
in class IMAPFolder
MessagingException
public boolean delete(boolean recurse) throws MessagingException
IMAPFolder
delete
in class IMAPFolder
MessagingException
public boolean renameTo(Folder f) throws MessagingException
IMAPFolder
renameTo
in class IMAPFolder
MessagingException
public void appendMessages(Message[] msgs) throws MessagingException
IMAPFolder
appendMessages
in class IMAPFolder
MessagingException
public Message[] expunge() throws MessagingException
IMAPFolder
expunge
in class IMAPFolder
MessagingException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"