public class MboxMessage
extends gnu.mail.providers.ReadOnlyMessage
MimeMessage.RecipientType
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
fromLine |
The From_ line associated with this message.
|
protected static java.lang.String |
STATUS |
Status header key.
|
content, contentStream, dh, flags, headers, modified, saved
ATTACHMENT, INLINE
Modifier | Constructor | Description |
---|---|---|
protected |
MboxMessage(MboxFolder folder,
java.lang.String fromLine,
java.io.InputStream in,
int msgnum) |
Creates a Mbox message.
|
protected |
MboxMessage(MboxFolder folder,
MimeMessage message,
int msgnum) |
Creates a Mbox message.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.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.
|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setMessageNumber, setRecipient
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
protected static final java.lang.String STATUS
protected java.lang.String fromLine
protected MboxMessage(MboxFolder folder, java.lang.String fromLine, java.io.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()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved