Module jakarta.mail

Class IMAPMessage

  • All Implemented Interfaces:
    ReadableMime, MimePart, Part
    Direct Known Subclasses:
    IMAPNestedMessage

    public class IMAPMessage
    extends MimeMessage
    implements ReadableMime
    This class implements an IMAPMessage object.

    An IMAPMessage object starts out as a light-weight object. It gets filled-in incrementally when a request is made for some item. Or when a prefetch is done using the FetchProfile.

    An IMAPMessage has a messageNumber and a sequenceNumber. The messageNumber is its index into its containing folder's messageCache. The sequenceNumber is its IMAP sequence-number.

    Author:
    John Mani, Bill Shannon
    • Field Detail

      • items

        protected java.util.Map<java.lang.String,​java.lang.Object> items
        A map of the extension FETCH items. In addition to saving the data in this map, an entry in this map indicates that we *have* the data, and so it doesn't need to be fetched again. The map is created only when needed, to avoid significantly increasing the effective size of an IMAPMessage object.
        Since:
        JavaMail 1.4.6
      • sectionId

        protected java.lang.String sectionId
    • Constructor Detail

      • IMAPMessage

        protected IMAPMessage​(IMAPFolder folder,
                              int msgnum)
        Constructor.
        Parameters:
        folder - the folder containing this message
        msgnum - the message sequence number
      • IMAPMessage

        protected IMAPMessage​(Session session)
        Constructor, for use by IMAPNestedMessage.
        Parameters:
        session - the Session