public class GmailFolder extends IMAPFolder
| Modifier and Type | Class and Description |
|---|---|
static class |
GmailFolder.FetchProfileItem
A fetch profile item for fetching headers.
|
IMAPFolder.ProtocolCommandattributes, availableFlags, exists, fullName, isNamespace, logger, messageCache, messageCacheLock, name, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATORHOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store| Modifier | Constructor and Description |
|---|---|
protected |
GmailFolder(ListInfo li,
IMAPStore store)
Constructor used to create an existing folder.
|
protected |
GmailFolder(String fullName,
char separator,
IMAPStore store,
Boolean isNamespace)
Constructor used to create a possibly non-existent folder.
|
| Modifier and Type | Method and Description |
|---|---|
protected IMAPMessage |
newIMAPMessage(int msgnum)
Create a new IMAPMessage object to represent the given message number.
|
void |
setLabels(int[] msgnums,
String[] labels,
boolean set)
Set the specified labels for the given array of message numbers.
|
void |
setLabels(int start,
int end,
String[] labels,
boolean set)
Set the specified labels for the given range of message numbers.
|
void |
setLabels(Message[] msgs,
String[] labels,
boolean set)
Set the specified labels for the given array of messages.
|
addACL, addMessageCountListener, addMessages, addRights, appendMessages, appendUIDMessages, checkClosed, checkExists, checkOpened, checkRange, close, copyMessages, copyUIDMessages, create, delete, doCommand, doCommandIgnoreFailure, doOptionalCommand, doProtocolCommand, exists, expunge, expunge, fetch, forceClose, getACL, getAttributes, getDeletedMessageCount, getEnvelopeCommand, getFolder, getFullName, getHighestModSeq, getMessage, getMessageBySeqNumber, getMessageByUID, getMessageCount, getMessages, getMessagesBySeqNumbers, getMessagesByUID, getMessagesByUID, getMessagesByUIDChangedSince, getName, getNewMessageCount, getParent, getPermanentFlags, getProtocol, getQuota, getSeparator, getSortedMessages, getSortedMessages, getStatusItem, getStoreProtocol, getType, getUID, getUIDNext, getUIDNotSticky, getUIDValidity, getUnreadMessageCount, handleResponse, hasNewMessages, id, idle, idle, isOpen, isSubscribed, keepConnectionAlive, list, listRights, listSubscribed, moveMessages, moveUIDMessages, myRights, open, open, releaseProtocol, releaseStoreProtocol, removeACL, removeRights, renameTo, search, search, setFlags, setFlags, setFlags, setQuota, setSubscribed, throwClosedExceptionaddConnectionListener, addFolderListener, addMessageChangedListener, close, finalize, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, toStringprotected GmailFolder(String fullName, char separator, IMAPStore store, Boolean isNamespace)
fullName - fullname of this folderseparator - the default separator character for this
folder's namespacestore - the StoreisNamespace - does this name represent a namespace?public void setLabels(Message[] msgs, String[] labels, boolean set) throws MessagingException
msgs - the messageslabels - the labels to add or removeset - true to add, false to removeMessagingException - for failurespublic void setLabels(int start,
int end,
String[] labels,
boolean set)
throws MessagingException
start - first message numberend - last message numberlabels - the labels to add or removeset - true to add, false to removeMessagingException - for failurespublic void setLabels(int[] msgnums,
String[] labels,
boolean set)
throws MessagingException
msgnums - the message numberslabels - the labels to add or removeset - true to add, false to removeMessagingException - for failuresprotected IMAPMessage newIMAPMessage(int msgnum)
newIMAPMessage in class IMAPFoldermsgnum - the message sequence numberCopyright © 1996-2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.