Class ParsedMessage

java.lang.Object
de.uplanet.lucy.server.mail.ParsedMessage

public final class ParsedMessage extends Object
A parsed message with information about a mail.
  • Method Details

    • createBuilder

      public static ParsedMessage.Builder createBuilder(List<javax.mail.Address> p_strSenders, List<javax.mail.Address> p_recipients)
      Create a new builder instance.
      Parameters:
      p_strSenders - The sender(s) of the mail.
      p_recipients - The recipient(s) of the mail.
      Returns:
      The builder instance.
    • getPlainTextContent

      public String getPlainTextContent()
      Returns:
      The plain text content (if no plain text is in the mail it is extracted from the HTML content).
    • getRawHTMLContent

      public String getRawHTMLContent()
      Returns:
      The raw HTML content (not sanitized - if the mail has no HTML content it is created from the plain text).
    • getHTMLContent

      public String getHTMLContent()
      Returns:
      The HTML content (if the mail has no HTML content it is created from the plain text).
    • getSenders

      public List<javax.mail.Address> getSenders()
      Returns:
      The senders.
    • getSender

      public javax.mail.Address getSender()
      Returns:
      The sender.
    • getRecipients

      public List<javax.mail.Address> getRecipients()
      Returns:
      The recipients.
    • getRecipientsCc

      public List<javax.mail.Address> getRecipientsCc()
      Returns:
      The Cc-recipients (an empty set if non is specified in the mail).
    • getAttachments

      public Set<Attachment> getAttachments()
      Returns:
      The attachments (an empty set if non is specified in the mail).