public class MboxMessage
extends gnu.mail.providers.ReadOnlyMessage
MimeMessage.RecipientType
Modifier and Type | Field and Description |
---|---|
protected String |
fromLine
The From_ line associated with this message.
|
protected static String |
STATUS
Status header key.
|
content, contentStream, dh, flags, headers, modified, saved
ATTACHMENT, INLINE
Modifier | Constructor and Description |
---|---|
protected |
MboxMessage(MboxFolder folder,
MimeMessage message,
int msgnum)
Creates a Mbox message.
|
protected |
MboxMessage(MboxFolder folder,
String fromLine,
InputStream in,
int msgnum)
Creates a Mbox message.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeader
addFrom, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, 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, reply, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFrom, setFrom, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateMessageId, writeTo, writeTo
addRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setMessageNumber, setRecipient
protected static final String STATUS
protected String fromLine
protected MboxMessage(MboxFolder folder, String fromLine, InputStream in, int msgnum) throws MessagingException
MessagingException
protected MboxMessage(MboxFolder folder, MimeMessage message, int msgnum) throws MessagingException
MessagingException
protected void setExpunged(boolean expunged)
setExpunged
in class Message
public void setFlags(Flags flag, boolean set) throws MessagingException
Status
header).setFlags
in class gnu.mail.providers.ReadOnlyMessage
flag
- the flags to be setset
- the value to be setIllegalWriteException
- if the underlying implementation
does not support modification of existing valuesMessagingException
protected void updateHeaders() throws MessagingException
updateHeaders
in class MimeMessage
MessagingException
MimeBodyPart.updateHeaders()
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved