An IMAPMessage object starts out as a light-weight object. It gets filled-in incrementally when a request is made for some item. Or when a prefetch is done using the FetchProfile.
An IMAPMessage has a messageNumber and a sequenceNumber. The messageNumber is its index into its containing folder's messageCache. The sequenceNumber is its IMAP sequence-number.
| Modifier and Type | Class and Description |
|---|---|
| public static class | IMAPMessage.FetchProfileCondition
This class implements the test to be done on each message in the folder. |
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| protected BODYSTRUCTURE | |
| private String | |
| protected ENVELOPE | |
| pack-priv static final String | |
| private volatile boolean | |
| protected Map | items
A map of the extension FETCH items. |
| private Hashtable | |
| private volatile long | |
| private Boolean | |
| private Date | |
| protected String | |
| private long | |
| private String | |
| private String | |
| private volatile long |
| Access | Constructor and Description |
|---|---|
| protected | IMAPMessage(IMAPFolder
the folder containing this message folder, int the message sequence number msgnum)Constructor. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private BODYSTRUCTURE | |
| private ENVELOPE | |
| private Flags | |
| pack-priv long | |
| pack-priv Session | |
| pack-priv void | |
| private InternetAddress[] | |
| public void | addFrom(Address[]
the senders of this message addresses)Overrides javax. |
| public void | addHeader(String
header name name, String header value value)Overrides javax. Implements javax. |
| public void | addHeaderLine(String
the line to add line)Overrides javax. Implements javax. |
| public void | addRecipients(Message.
Recipient type type,Addresses addresses)
Add the given addresses to the specified recipient type.
|
| private boolean | |
| protected void | |
| protected Object | |
| protected void | forceCheckExpunged()
Do a NOOP to force any untagged EXPUNGE responses and then check if this message is expunged. |
| public Enumeration | getAllHeaderLines()
Overrides javax. Implements javax. |
| public Enumeration | getAllHeaders()
Overrides javax. Implements javax. |
| public String | getContentID()
Overrides javax. Implements javax. |
| public String[] | getContentLanguage()
Overrides javax. Implements javax. |
| public String | getContentMD5()
Overrides javax. Implements javax. |
| protected InputStream | getContentStream()
Get all the bytes for this message.
|
| public synchronized String | getContentType()
Overrides javax. Implements javax. |
| public synchronized DataHandler | getDataHandler()
Overrides javax. Implements javax. |
| public String | getDescription()
Overrides javax. Implements javax. |
| public String | getDisposition()
Overrides javax. Implements javax. |
| public String | getEncoding()
Overrides javax. Implements javax. |
| protected int | |
| public String | getFileName()
Overrides javax. Implements javax. |
| public synchronized Flags | |
| public Address[] | |
| public String[] | getHeader(String
name of header name)Overrides javax. Implements javax. |
| public String | getHeader(String
the name of this header name, String separator between values delimiter)Overrides javax. Implements javax. |
| public String | |
| public synchronized Object | |
| public int | getLineCount()
Overrides javax. Implements javax. |
| public Enumeration | getMatchingHeaderLines(String[]
the headers to return names)Overrides javax. Implements javax. |
| public Enumeration | getMatchingHeaders(String[]
the headers to match names)Overrides javax. Implements javax. |
| protected Object | Returns: the message cache lock objectGet the messageCacheLock, associated with this Message's Folder. |
| public String | |
| public InputStream | Returns: the MIME format streamImplements com. |
| public synchronized long | Returns: the modification sequence numberReturn the modification sequence number (MODSEQ) for this message. |
| public Enumeration | getNonMatchingHeaderLines(String[]
the headers to not return names)Overrides javax. Implements javax. |
| public Enumeration | getNonMatchingHeaders(String[]
the headers to not match names)Overrides javax. Implements javax. |
| public synchronized boolean | Returns: the peek flagGet whether or not to use the PEEK variant of FETCH when fetching message content. |
| protected IMAPProtocol | Returns: the IMAPProtocol object for the containing folderGet this message's folder's protocol connection. |
| public Date | getReceivedDate()
Get the received date (INTERNALDATE).
|
| public Address[] | getRecipients(Message.
Type of recepient type |
| public Address[] | |
| public Address | |
| public Date | |
| protected int | |
| public int | getSize()
Overrides javax. Implements javax. |
| public long | |
| public String | |
| protected long | |
| protected void | handleExtensionFetchItems(Map<String, Object>
the Map to add fetch items to extensionItems)Apply the data in the extension FETCH items to this message. |
| protected boolean | Returns: did we handle this fetch item?the fetch item item, String[] the headers we're asking for hdrs, boolean load all headers? allHeaders)Apply the data in the FETCH item to this message. |
| protected boolean | |
| public synchronized void | |
| private boolean | |
| protected boolean | |
| public synchronized boolean | isSet(Flags.
the flag flagOverrides javax. |
| private synchronized void | |
| private synchronized void | |
| private synchronized void | |
| private synchronized void | |
| public void | removeHeader(String
the name of this header name)Overrides javax. Implements javax. |
| public void | setContentID(String
the content ID cid)Overrides javax. |
| public void | setContentLanguage(String[]
array of language tags languages)Overrides javax. Implements javax. |
| public void | setContentMD5(String
the MD5 value md5)Overrides javax. Implements javax. |
| public void | setDataHandler(DataHandler
The DataHandler for the content. content)Overrides javax. Implements javax. |
| public void | setDescription(String
Description description, String Charset for encoding charset)
Set the "Content-Description" header field for this Message.
|
| public void | setDisposition(String
disposition of this part disposition)Overrides javax. Implements javax. |
| protected void | setExpunged(boolean
the expunged flag set)Overrides javax. |
| public void | setFileName(String
Filename to associate with this part filename)Overrides javax. Implements javax. |
| public synchronized void | setFlags(Flags
Flags object containing the flags to be set flag, boolean the value to be set set)Overrides javax. |
| public void | setFrom(Address
the sender of this message address)Overrides javax. |
| public void | setHeader(String
header name name, String header value value)Overrides javax. Implements javax. |
| private void | |
| private void | |
| protected void | setMessageNumber(int
the message number msgnum)Overrides javax. |
| pack-priv void | |
| public synchronized void | setPeek(boolean
the peek flag peek)Set whether or not to use the PEEK variant of FETCH when fetching message content. |
| public void | setRecipients(Message.
Recipient type type,Addresses addresses)
Set the specified recipient type to the given addresses.
|
| public void | setReplyTo(Address[]
addresses to which replies should be directed addresses)Overrides javax. |
| public void | setSender(Address
the sender of this message address)Overrides javax. |
| public void | setSentDate(Date
the sent date of this message d)Overrides javax. |
| public void | setSubject(String
The subject subject, String The charset charset)Overrides javax. |
| protected void | |
| private String | |
| public void | writeTo(OutputStream
the stream to write to os)Overrides javax. Implements javax. |