Module jakarta.mail

Class IMAPNestedMessage

    • Method Detail

      • getMessageCacheLock

        protected java.lang.Object getMessageCacheLock()
        Description copied from class: IMAPMessage
        Get the messageCacheLock, associated with this Message's Folder.
        Overrides:
        getMessageCacheLock in class IMAPMessage
        Returns:
        the message cache lock object
      • getSequenceNumber

        protected int getSequenceNumber()
        Description copied from class: IMAPMessage
        Get this message's IMAP sequence number. ASSERT: This method must be called only when holding the messageCacheLock.
        Overrides:
        getSequenceNumber in class IMAPMessage
        Returns:
        the message sequence number
      • 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:
        Folder.expunge()
      • 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