Class MboxMessage

  • All Implemented Interfaces:
    MimePart, Part

    public class MboxMessage
    extends gnu.mail.providers.ReadOnlyMessage
    The message class implementing the Mbox mail protocol.
    Author:
    Chris Burdess
    • Field Detail

      • STATUS

        protected static final java.lang.String STATUS
        Status header key. This keeps the mbox flags.
        See Also:
        Constant Field Values
      • fromLine

        protected java.lang.String fromLine
        The From_ line associated with this message. We will preserve this if possible.
    • Constructor Detail

      • MboxMessage

        protected MboxMessage​(MboxFolder folder,
                              java.lang.String fromLine,
                              java.io.InputStream in,
                              int msgnum)
                       throws MessagingException
        Creates a Mbox message. This is called by the MboxStore.
        Throws:
        MessagingException
    • Method Detail

      • setExpunged

        protected void setExpunged​(boolean expunged)
        Allow MboxFolder access to set the expunged flag after expunge.
        Overrides:
        setExpunged in class Message
      • setFlags

        public void setFlags​(Flags flag,
                             boolean set)
                      throws MessagingException
        Set the specified flags(reflected in the Status header).
        Overrides:
        setFlags in class gnu.mail.providers.ReadOnlyMessage
        Parameters:
        flag - the flags to be set
        set - the value to be set
        Throws:
        IllegalWriteException - if the underlying implementation does not support modification of existing values
        MessagingException
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object