Class MailMessage


  • public abstract class MailMessage
    extends Object
    A simplified representation of an RFC 2045-2047 mime email message used for representing received emails inside Gerrit. It is populated by the MailParser after MailReceiver has received a message. Transformations done by the parser include stitching mime parts together, transforming all content to UTF-16 and removing attachments.

    A valid MailMessage contains at least the following fields: id, from, to, subject and dateReceived.

    • Constructor Detail

      • MailMessage

        public MailMessage()
    • Method Detail

      • id

        public abstract String id()
      • from

        public abstract Address from()
      • to

        public abstract com.google.common.collect.ImmutableList<Address> to()
      • cc

        public abstract com.google.common.collect.ImmutableList<Address> cc()
      • dateReceived

        public abstract org.joda.time.DateTime dateReceived()
      • additionalHeaders

        public abstract com.google.common.collect.ImmutableList<String> additionalHeaders()
      • subject

        public abstract String subject()
      • textContent

        public abstract String textContent()
      • htmlContent

        public abstract String htmlContent()
      • rawContent

        public abstract com.google.common.collect.ImmutableList<Integer> rawContent()
      • rawContentUTF

        public abstract String rawContentUTF()