public class MessageParser
extends Object
IMAP message parser.
-
Constructor Summary
Constructors
-
Method Summary
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
-
-
-
getTextContent
- Throws:
Exception
-
getAttachContent
- Throws:
Exception