Interface IIMAPMessage


public interface IIMAPMessage
IMAP Message interface Can : - get data like subject, content, sender and recipient, dates, attachments - get or set flags
  • Method Details

    • getSubject

      String getSubject()
      Returns:
      message subject
    • getTextContent

      String getTextContent()
      Returns:
      message text content
    • getAttachments

      Collection<IIMAPBodyPart> getAttachments()
      Returns:
      message attachment
    • getRecipients

      Collection<jakarta.mail.Address> getRecipients()
      Returns:
      list of addresses
    • getFrom

      jakarta.mail.Address getFrom()
      Returns:
      sender address
    • getReceivedDate

      Date getReceivedDate()
      Returns:
      received date
    • getSentDate

      Date getSentDate()
      Returns:
      sent date
    • setFlag

      void setFlag(IIMAPFlag flag, boolean value)
      set flag value
      Parameters:
      flag - IIMAPFlag
      value -
    • getFlagValue

      boolean getFlagValue(IIMAPFlag flag)
      return the value associated to a flag
      Parameters:
      flag - IIMAPFlag
      Returns: