public class MboxMessage
extends gnu.mail.providers.ReadOnlyMessage
MimeMessage.RecipientType| Modifier and Type | Field and 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, savedATTACHMENT, INLINE| Modifier | Constructor and Description |
|---|---|
protected |
MboxMessage(MboxFolder folder,
MimeMessage message,
int msgnum)
Creates a Mbox message.
|
protected |
MboxMessage(MboxFolder folder,
java.lang.String fromLine,
java.io.InputStream in,
int msgnum)
Creates a Mbox message.
|
| Modifier and Type | Method and 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.
|
addHeader, addHeaderLine, removeHeader, saveChanges, setContent, setContent, setHeaderaddFrom, 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, writeToaddRecipient, getFolder, getMessageNumber, isExpunged, match, setFlag, setMessageNumber, setRecipientprotected 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
MessagingExceptionprotected MboxMessage(MboxFolder folder, MimeMessage message, int msgnum) throws MessagingException
MessagingExceptionprotected void setExpunged(boolean expunged)
setExpunged in class Messagepublic void setFlags(Flags flag, boolean set) throws MessagingException
Status header).setFlags in class gnu.mail.providers.ReadOnlyMessageflag - the flags to be setset - the value to be setIllegalWriteException - if the underlying implementation
does not support modification of existing valuesMessagingExceptionprotected void updateHeaders()
throws MessagingException
updateHeaders in class MimeMessageMessagingExceptionMimeBodyPart.updateHeaders()public boolean equals(java.lang.Object other)
equals in class java.lang.Object© Copyright 2003, 2004 The Free Software Foundation, All rights reserved