gnu.mail.providers.mbox

Class MboxMessage

public class MboxMessage extends ReadOnlyMessage

The message class implementing the Mbox mail protocol.

Author: Chris Burdess

Field Summary
protected StringfromLine
The From_ line associated with this message.
protected static StringSTATUS
Status header key.
Constructor Summary
protected MboxMessage(MboxFolder folder, String fromLine, InputStream in, int msgnum)
Creates a Mbox message.
protected MboxMessage(MboxFolder folder, MimeMessage message, int msgnum)
Creates a Mbox message.
Method Summary
booleanequals(Object other)
protected voidsetExpunged(boolean expunged)
Allow MboxFolder access to set the expunged flag after expunge.
voidsetFlags(Flags flag, boolean set)
Set the specified flags(reflected in the Status header).
protected voidupdateHeaders()
Updates the status header from the current flags.

Field Detail

fromLine

protected String fromLine
The From_ line associated with this message. We will preserve this if possible.

STATUS

protected static final String STATUS
Status header key. This keeps the mbox flags.

Constructor Detail

MboxMessage

protected MboxMessage(MboxFolder folder, String fromLine, InputStream in, int msgnum)
Creates a Mbox message. This is called by the MboxStore.

MboxMessage

protected MboxMessage(MboxFolder folder, MimeMessage message, int msgnum)
Creates a Mbox message. This is called by the MboxFolder when appending. It creates a copy of the specified message for the new folder.

Method Detail

equals

public boolean equals(Object other)

setExpunged

protected void setExpunged(boolean expunged)
Allow MboxFolder access to set the expunged flag after expunge.

setFlags

public void setFlags(Flags flag, boolean set)
Set the specified flags(reflected in the Status header).

updateHeaders

protected void updateHeaders()
Updates the status header from the current flags.
©