public class IMAPMessage extends AbstractMessage
Constructor and Description |
---|
IMAPMessage() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
customFlags()
Returns custom flags.
|
int |
flags()
Flags of the message.
|
java.util.List<java.lang.String> |
gmailLabels()
Returns the labels of the message in case that's a Gmail server.
|
long |
gmailMessageID()
Returns the message identifier on Gmail server.
|
long |
gmailThreadID()
Returns the message thread identifier on Gmail server.
|
java.lang.String |
htmlRendering(java.lang.String folder,
HTMLRendererIMAPCallback dataCallback)
Returns the HTML rendering of the message.
|
java.lang.String |
htmlRendering(java.lang.String folder,
HTMLRendererIMAPCallback dataCallback,
HTMLRendererTemplateCallback htmlCallback)
Returns the HTML rendering of the message.
|
AbstractPart |
mainPart()
Returns the main part of the message.
|
long |
modSeqValue()
Returns the modification sequence value.
|
int |
originalFlags()
Original message flags.
|
AbstractPart |
partForPartID(java.lang.String partID)
Returns the MIME part with the given partID.
|
long |
sequenceNumber()
IMAP sequence number.
|
void |
setCustomFlags(java.util.List<java.lang.String> customFlags)
Sets custom flags.
|
void |
setFlags(int flags)
Sets flags of the message.
|
void |
setGmailLabels(java.util.List<java.lang.String> labels)
Sets the labels of the message in case that's a Gmail server.
|
void |
setGmailMessageID(long msgID)
Sets the message identifier on Gmail server.
|
void |
setGmailThreadID(long threadID)
Sets the message thread identifier on Gmail server.
|
void |
setMainPart(AbstractPart mainPart)
Sets the main part of the message.
|
void |
setModSeqValue(long uid)
Sets the modification sequence value.
|
void |
setOriginalFlags(int flags)
Set original message flags.
|
void |
setSequenceNumber(long sequenceNumber)
Sets the IMAP sequence number.
|
void |
setSize(long size)
Sets the size of the message.
|
void |
setUid(long uid)
Sets the UID of the message.
|
long |
size()
Size of the message.
|
long |
uid()
UID of the message.
|
attachments, header, htmlInlineAttachments, partForContentID, partForUniqueID, requiredPartsForRendering, setHeader
clone, finalize, initWithNative, readObject, toString, writeObject
public long sequenceNumber()
public void setSequenceNumber(long sequenceNumber)
public long uid()
public void setUid(long uid)
public long size()
public void setSize(long size)
public void setFlags(int flags)
MessageFlag
public int flags()
MessageFlag
public void setOriginalFlags(int flags)
MessageFlag
public int originalFlags()
MessageFlag
public void setCustomFlags(java.util.List<java.lang.String> customFlags)
public java.util.List<java.lang.String> customFlags()
public long modSeqValue()
public void setModSeqValue(long uid)
public void setMainPart(AbstractPart mainPart)
public AbstractPart mainPart()
public void setGmailLabels(java.util.List<java.lang.String> labels)
public java.util.List<java.lang.String> gmailLabels()
public void setGmailMessageID(long msgID)
public long gmailMessageID()
public void setGmailThreadID(long threadID)
public long gmailThreadID()
public AbstractPart partForPartID(java.lang.String partID)
public java.lang.String htmlRendering(java.lang.String folder, HTMLRendererIMAPCallback dataCallback, HTMLRendererTemplateCallback htmlCallback)
folder
- is the folder containing the message.dataCallback
- callbacks for the IMAP data.htmlCallback
- callbacks for the HTML template.public java.lang.String htmlRendering(java.lang.String folder, HTMLRendererIMAPCallback dataCallback)
folder
- is the folder containing the message.dataCallback
- callbacks for the IMAP data.