ReadableMime, MimePart, Partpublic class GmailMessage extends IMAPMessage
IMAPMessage.FetchProfileConditionMimeMessage.RecipientTypebs, envelope, items, sectionIdcachedContent, content, contentStream, dh, flags, headers, modified, savedATTACHMENT, INLINE| Modifier | Constructor | Description |
|---|---|---|
protected |
GmailMessage(IMAPFolder folder,
int msgnum) |
Constructor.
|
protected |
GmailMessage(Session session) |
Constructor, for use by IMAPNestedMessage.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearCachedLabels() |
Clear any cached labels for this message.
|
java.lang.String[] |
getLabels() |
Return the Gmail labels associated with this message.
|
long |
getMsgId() |
Return the Gmail unique message ID.
|
long |
getThrId() |
Return the Gmail unique thread ID.
|
void |
setLabels(java.lang.String[] labels,
boolean set) |
Set/Unset the given labels on this message.
|
addFrom, addHeader, addHeaderLine, addRecipients, checkExpunged, fetchItem, forceCheckExpunged, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFetchBlockSize, getFileName, getFlags, getFrom, getHeader, getHeader, getInReplyTo, getItem, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageCacheLock, getMessageID, getMimeStream, getModSeq, getNonMatchingHeaderLines, getNonMatchingHeaders, getPeek, getProtocol, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSequenceNumber, getSize, getSizeLong, getSubject, getUID, handleExtensionFetchItems, handleFetchItem, ignoreBodyStructureSize, invalidateHeaders, isREV1, isSet, removeHeader, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDisposition, setExpunged, setFileName, setFlags, setFrom, setHeader, setMessageNumber, setPeek, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setUID, writeToaddRecipient, getFolder, getMessageNumber, getSession, isExpunged, match, setFlag, setRecipientaddRecipients, createInternetHeaders, createMimeMessage, getAllRecipients, getContent, getInputStream, getRawInputStream, isMimeType, parse, reply, reply, saveChanges, setContent, setContent, setDescription, setFrom, setFrom, setRecipients, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeToprotected GmailMessage(IMAPFolder folder, int msgnum)
folder - the containing foldermsgnum - the message sequence numberprotected GmailMessage(Session session)
session - the Sessionpublic long getMsgId()
throws MessagingException
MessagingException - for failurespublic long getThrId()
throws MessagingException
MessagingException - for failurespublic java.lang.String[] getLabels()
throws MessagingException
MessagingException - for failurespublic void setLabels(java.lang.String[] labels,
boolean set)
throws MessagingException
labels - the labels to add or removeset - true to add labels, false to removeMessagingException - for failurespublic void clearCachedLabels()
Copyright © 2018 Oracle. All rights reserved.