Package org.bgerp.plugin.msg.email

# Class MessageParser

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

public class MessageParser extends Object
IMAP message parser.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MessageParser(jakarta.mail.Message message)`
  Main constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<FileData>`
  `getAttachContent()`
  `String`
  `getFrom()`
  `Date`
  `getFromTime()`
  `String`
  `getMessageId()`
  `String`
  `getMessageSubject()`
  `String`
  `getTextContent()`
  `String`
  `getTo()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MessageParser

    public MessageParser(jakarta.mail.Message message)
    Main constructor.
    Parameters:
      `message` - must be `IMAPMessage` instance.
    Throws:
      `IllegalArgumentException` - not `IMAPMessage` was passed.

- ## Method Details

  - ### getMessageId

    public String getMessageId() throws jakarta.mail.MessagingException
    Throws:
      `jakarta.mail.MessagingException`

  - ### getFrom

    public String getFrom() throws jakarta.mail.MessagingException
    Throws:
      `jakarta.mail.MessagingException`

  - ### getFromTime

    public Date getFromTime() throws jakarta.mail.MessagingException
    Throws:
      `jakarta.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<FileData> getAttachContent() throws Exception
    Throws:
      `Exception`