public class OutlookMessage extends Object
fromEmail). Attachments are stored in the
property outlookAttachments). An attachment may be of the type OutlookMsgAttachment which represents another attached (encapsulated) .msg
object.| Constructor and Description |
|---|
OutlookMessage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(OutlookAttachment outlookAttachment) |
void |
addRecipient(OutlookRecipient recipient) |
Map<String,OutlookFileAttachment> |
fetchCIDMap() |
List<OutlookFileAttachment> |
fetchTrueAttachments() |
List<OutlookRecipient> |
getBccRecipients()
Retrieves a list of
OutlookRecipient objects that represent the BCC recipients of the message. |
String |
getBodyHTML()
Bean getter for
bodyHTML. |
String |
getBodyRTF()
Bean getter for
bodyRTF. |
String |
getBodyText()
Bean getter for
bodyText. |
List<OutlookRecipient> |
getCcRecipients()
Retrieves a list of
OutlookRecipient objects that represent the CC recipients of the message. |
@Nullable Date |
getClientSubmitTime() |
String |
getConvertedBodyHTML()
Bean getter for
convertedBodyHTML. |
Date |
getCreationDate()
Bean getter for
creationDate. |
Date |
getDate()
Bean getter for
date. |
String |
getDisplayBcc()
Bean getter for
displayBcc. |
String |
getDisplayCc()
Bean getter for
displayCc. |
String |
getDisplayTo()
Bean getter for
displayTo. |
String |
getFromEmail()
Bean getter for
fromEmail. |
String |
getFromName()
Bean getter for
fromName. |
String |
getHeaders()
Bean getter for
headers. |
Map<String,Collection<String>> |
getHeadersMap()
Bean getter for
headersMap. |
Date |
getLastModificationDate()
Bean getter for
lastModificationDate. |
String |
getMessageClass()
Bean getter for
messageClass. |
String |
getMessageId()
Bean getter for
messageId. |
List<OutlookAttachment> |
getOutlookAttachments()
Bean getter for
outlookAttachments. |
Set<String> |
getPropertiesAsHex()
This method provides a convenient way of retrieving
property keys for all guys that like to stick to hex values.
|
Set<Integer> |
getPropertyCodes()
This method returns a list of all available properties.
|
String |
getPropertyListing()
Generates a string that can be used to debug the properties of the msg.
|
Object |
getPropertyValue(Integer code)
This method retrieves the value for a specific property.
|
List<OutlookRecipient> |
getRecipients()
Bean getter for
recipients. |
String |
getReplyToEmail()
Bean getter for
replyToEmail. |
String |
getReplyToName()
Bean getter for
replyToName. |
OutlookSmime |
getSmime()
Bean getter for
smime. |
String |
getSubject()
Bean getter for
subject. |
List<OutlookRecipient> |
getToRecipients()
Retrieves a list of
OutlookRecipient objects that represent the CC recipients of the message. |
void |
setProperty(OutlookMessageProperty msgProp,
org.bbottema.rtftohtml.RTF2HTMLConverter rtf2HTMLConverter)
Sets the name/value pair in the
properties map. |
void |
setReplyToEmail(String replyToEmail)
Bean setter for
replyToEmail. |
void |
setReplyToName(String replyToName)
Bean setter for
replyToName. |
void |
setSmime(OutlookSmime smime)
Bean setter for
smime. |
String |
toString() |
public void addAttachment(OutlookAttachment outlookAttachment)
public void addRecipient(OutlookRecipient recipient)
public void setProperty(OutlookMessageProperty msgProp, org.bbottema.rtftohtml.RTF2HTMLConverter rtf2HTMLConverter)
properties map. Some properties are put into special attributes (e.g., setSubject(String) when the property name is '0x37').public Map<String,OutlookFileAttachment> fetchCIDMap()
public List<OutlookFileAttachment> fetchTrueAttachments()
public List<OutlookAttachment> getOutlookAttachments()
outlookAttachments.public List<OutlookRecipient> getRecipients()
recipients.public String getDisplayBcc()
displayBcc.public String getMessageClass()
messageClass.public List<OutlookRecipient> getToRecipients()
OutlookRecipient objects that represent the CC recipients of the message.public List<OutlookRecipient> getCcRecipients()
OutlookRecipient objects that represent the CC recipients of the message.public List<OutlookRecipient> getBccRecipients()
OutlookRecipient objects that represent the BCC recipients of the message.public String getConvertedBodyHTML()
convertedBodyHTML.public Map<String,Collection<String>> getHeadersMap()
headersMap.@Nullable public @Nullable Date getClientSubmitTime()
clientSubmitTime or null in case this message has not been sent yet.public Date getCreationDate()
creationDate.public Date getLastModificationDate()
lastModificationDate.public Set<String> getPropertiesAsHex()
getPropertyCodes().public Set<Integer> getPropertyCodes()
public Object getPropertyValue(Integer code)
NOTE: You can also use fields defined within MAPIProperty to easily read certain properties.
code - The key for the property to be retrieved.public String getPropertyListing()
public String getReplyToEmail()
replyToEmail.public void setReplyToEmail(String replyToEmail)
replyToEmail.public String getReplyToName()
replyToName.public void setReplyToName(String replyToName)
replyToName.public void setSmime(OutlookSmime smime)
smime.public OutlookSmime getSmime()
smime.Copyright © 2017–2022. All rights reserved.