public class EmailMessage extends Object
| Constructor and Description |
|---|
EmailMessage(int messageNumber,
String uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content) |
EmailMessage(int messageNumber,
String uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content,
String toRecipients,
String ccRecipients,
String bccRecipients)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBccRecipients() |
String |
getCcRecipients() |
EmailMessageContent |
getContent() |
String |
getContentType() |
String |
getMessageId()
Returns the UID of the message if it is present, else the message number.
|
int |
getMessageNumber() |
String |
getSender()
Returns the sender of this email message.
|
String |
getSenderName() |
Date |
getSentDate()
Returns the date the email message was sent or
null if the
server did not provide one. |
String |
getSentDateString() |
String |
getSubject()
Returns the email message subject.
|
String |
getToRecipients() |
String |
getUid()
Returns the UID of the message as set by the Folder or
null
if the Folder does not implement UIDFolder. |
boolean |
isAnswered() |
boolean |
isDeleted() |
boolean |
isMultipart() |
boolean |
isUnread() |
void |
setUnread(boolean unread) |
public EmailMessage(int messageNumber,
String uid,
String sender,
String subject,
Date sentDate,
boolean unread,
boolean answered,
boolean deleted,
boolean multipart,
String contentType,
EmailMessageContent content,
String toRecipients,
String ccRecipients,
String bccRecipients)
public int getMessageNumber()
public String getUid()
null
if the Folder does not implement UIDFolder.public String getMessageId()
public Date getSentDate()
null if the
server did not provide one.nullMessagingExceptionpublic String getSentDateString()
public String getSender()
public String getSenderName()
public String getSubject()
public boolean isUnread()
public void setUnread(boolean unread)
public boolean isAnswered()
public boolean isDeleted()
public boolean isMultipart()
public String getContentType()
null if the content cannot be readpublic EmailMessageContent getContent()
public String getToRecipients()
public String getCcRecipients()
public String getBccRecipients()
Copyright © 2014 Jasig. All Rights Reserved.