Class MessageParser

java.lang.Object
org.bgerp.plugin.msg.email.MessageParser

public class MessageParser extends Object
IMAP message parser.
  • Constructor Details

    • MessageParser

      public MessageParser(javax.mail.Message message)
      Main constructor.
      Parameters:
      message - must be IMAPMessage instance.
      Throws:
      IllegalArgumentException - not IMAPMessage was passed.
  • Method Details

    • getMessageId

      public String getMessageId() throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • getFrom

      public String getFrom() throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • getFromTime

      public Date getFromTime() throws javax.mail.MessagingException
      Throws:
      javax.mail.MessagingException
    • getTo

      public String getTo() throws Exception
      Throws:
      Exception
    • getMessageSubject

      public String getMessageSubject() throws Exception
      Throws:
      Exception
    • getTextContent

      public String getTextContent() throws Exception
      Throws:
      Exception
    • getAttachContent

      public List<MessageParser.MessageAttach> getAttachContent() throws Exception
      Throws:
      Exception