java.lang.Object
jakarta.mail.Folder
org.eclipse.angus.mail.imap.IMAPFolder
org.eclipse.angus.mail.gimap.GmailFolder
- All Implemented Interfaces:
UIDFolder,AutoCloseable,org.eclipse.angus.mail.iap.ResponseHandler
A Gmail folder. Defines new FetchProfile items and
uses GmailMessage to store additional Gmail message attributes.
- Since:
- JavaMail 1.4.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA fetch profile item for fetching headers.Nested classes/interfaces inherited from class org.eclipse.angus.mail.imap.IMAPFolder
IMAPFolder.ProtocolCommand -
Field Summary
Fields inherited from class org.eclipse.angus.mail.imap.IMAPFolder
attributes, availableFlags, exists, fullName, isNamespace, logger, messageCache, messageCacheLock, name, permanentFlags, protocol, separator, type, uidTable, UNKNOWN_SEPARATORFields inherited from class jakarta.mail.Folder
HOLDS_FOLDERS, HOLDS_MESSAGES, mode, READ_ONLY, READ_WRITE, store -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGmailFolder(String fullName, char separator, IMAPStore store, Boolean isNamespace) Constructor used to create a possibly non-existent folder.protectedGmailFolder(org.eclipse.angus.mail.imap.protocol.ListInfo li, IMAPStore store) Constructor used to create an existing folder. -
Method Summary
Modifier and TypeMethodDescriptionprotected IMAPMessagenewIMAPMessage(int msgnum) Create a new IMAPMessage object to represent the given message number.voidSet the specified labels for the given array of message numbers.voidSet the specified labels for the given range of message numbers.voidSet the specified labels for the given array of messages.Methods inherited from class org.eclipse.angus.mail.imap.IMAPFolder
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, throwClosedExceptionMethods inherited from class jakarta.mail.Folder
addConnectionListener, addFolderListener, addMessageChangedListener, close, finalize, getMessages, getMessages, getMode, getStore, getURLName, list, listSubscribed, notifyConnectionListeners, notifyFolderListeners, notifyFolderRenamedListeners, notifyMessageAddedListeners, notifyMessageChangedListeners, notifyMessageRemovedListeners, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, toString
-
Constructor Details
-
GmailFolder
Constructor used to create a possibly non-existent folder.- Parameters:
fullName- fullname of this folderseparator- the default separator character for this folder's namespacestore- the StoreisNamespace- does this name represent a namespace?
-
GmailFolder
Constructor used to create an existing folder.- Parameters:
li- the ListInfo for this folderstore- the store containing this folder
-
-
Method Details
-
setLabels
Set the specified labels for the given array of messages.- Parameters:
msgs- the messageslabels- the labels to add or removeset- true to add, false to remove- Throws:
MessagingException- for failures- Since:
- JavaMail 1.5.5
-
setLabels
Set the specified labels for the given range of message numbers.- Parameters:
start- first message numberend- last message numberlabels- the labels to add or removeset- true to add, false to remove- Throws:
MessagingException- for failures- Since:
- JavaMail 1.5.5
-
setLabels
Set the specified labels for the given array of message numbers.- Parameters:
msgnums- the message numberslabels- the labels to add or removeset- true to add, false to remove- Throws:
MessagingException- for failures- Since:
- JavaMail 1.5.5
-
newIMAPMessage
Create a new IMAPMessage object to represent the given message number.- Overrides:
newIMAPMessagein classIMAPFolder- Parameters:
msgnum- the message sequence number- Returns:
- the new IMAPMessage object
-