Class IMAPNestedMessage

All Implemented Interfaces:
ReadableMime, MimePart, Part

public class IMAPNestedMessage extends IMAPMessage
This class implements a nested IMAP message
  • Method Details

    • isExpunged

      public boolean isExpunged()
      Description copied from class: Message
      Checks whether this message is expunged. All other methods except getMessageNumber() are invalid on an expunged Message object.

      Messages that are expunged due to an explict expunge() request on the containing Folder are removed from the Folder immediately. Messages that are externally expunged by another source are marked "expunged" and return true for the isExpunged() method, but they are not removed from the Folder until an explicit expunge() is done on the Folder.

      See the description of expunge() for more details on expunge handling.

      Overrides:
      isExpunged in class Message
      Returns:
      true if the message is expunged
      See Also:
    • getSize

      public int getSize() throws MessagingException
      Description copied from class: IMAPMessage
      Get the message size.

      Note that this returns RFC822.SIZE. That is, it's the size of the whole message, header and body included. Note also that if the size of the message is greater than Integer.MAX_VALUE (2GB), this method returns Integer.MAX_VALUE.

      Specified by:
      getSize in interface Part
      Overrides:
      getSize in class IMAPMessage
      Returns:
      size of content in bytes
      Throws:
      MessagingException - for failures
    • setFlags

      public void setFlags(Flags flag, boolean set) throws MessagingException
      Description copied from class: IMAPMessage
      Set/Unset the given flags in this message.
      Overrides:
      setFlags in class IMAPMessage
      Parameters:
      flag - Flags object containing the flags to be set
      set - the value to be set
      Throws:
      MessagingException - for other failures
      See Also: