public class MessageParser
extends Object
IMAP message parser.
-
Nested Class Summary
Nested Classes
-
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(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
-
-
-
getTextContent
- Throws:
Exception
-
getAttachContent
- Throws:
Exception