gnu.mail.providers.mbox
Class MboxMessage
- MimePart, Part
public class MboxMessage
extends gnu.mail.providers.ReadOnlyMessage
The message class implementing the Mbox mail protocol.
protected static String | STATUS- Status header key.
|
protected String | fromLine- The From_ line associated with this message.
|
boolean | equals(Object other)
|
protected void | setExpunged(boolean expunged)- Allow MboxFolder access to set the expunged flag after expunge.
|
void | setFlags(Flags flag, boolean set)- Set the specified flags(reflected in the
Status header).
|
protected void | updateHeaders()- Updates the status header from the current flags.
|
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, updateHeaders, writeTo, writeTo |
addFrom, addRecipient, addRecipients, getAllRecipients, getFlags, getFolder, getFrom, getMessageNumber, getReceivedDate, getRecipients, getReplyTo, getSentDate, getSubject, isExpunged, isSet, match, reply, saveChanges, setExpunged, setFlag, setFlags, setFrom, setFrom, setMessageNumber, setRecipient, setRecipients, setReplyTo, setSentDate, setSubject |
STATUS
protected static final String STATUS
Status header key.
This keeps the mbox flags.
fromLine
protected String fromLine
The From_ line associated with this message.
We will preserve this if possible.
MboxMessage
protected MboxMessage(MboxFolder folder,
String fromLine,
InputStream in,
int msgnum)
throws MessagingException Creates a Mbox message.
This is called by the MboxStore.
MboxMessage
protected MboxMessage(MboxFolder folder,
MimeMessage message,
int msgnum)
throws MessagingException Creates a Mbox message.
This is called by the MboxFolder when appending.
It creates a copy of the specified message for the new folder.
equals
public boolean equals(Object other)
setExpunged
protected void setExpunged(boolean expunged)
Allow MboxFolder access to set the expunged flag after expunge.
- setExpunged in interface Message
setFlags
public void setFlags(Flags flag,
boolean set)
throws MessagingException Set the specified flags(reflected in the Status header).
- setFlags in interface gnu.mail.providers.ReadOnlyMessage
updateHeaders
protected void updateHeaders()
throws MessagingException Updates the status header from the current flags.
- updateHeaders in interface MimeMessage