public class PSTMessage extends PSTObject
Modifier and Type | Field and Description |
---|---|
private PSTTable7C |
attachmentTable
attachment stuff here, not sure if these can just exist in emails or not,
but a table key of 0x0671 would suggest that this is a property of the
envelope
rather than a specific email property
|
static int |
IMPORTANCE_HIGH |
static int |
IMPORTANCE_LOW |
static int |
IMPORTANCE_NORMAL |
static int |
RECIPIENT_TYPE_CC |
static int |
RECIPIENT_TYPE_TO |
private PSTTable7C |
recipientTable |
children, compEnc, data, descriptorIndexNode, items, localDescriptorItems, NID_TYPE_ASSOC_CONTENTS_TABLE, NID_TYPE_ASSOC_MESSAGE, NID_TYPE_ATTACHMENT, NID_TYPE_ATTACHMENT_TABLE, NID_TYPE_CONTENTS_TABLE, NID_TYPE_CONTENTS_TABLE_INDEX, NID_TYPE_HID, NID_TYPE_HIERARCHY_TABLE, NID_TYPE_INTERNAL, NID_TYPE_LTP, NID_TYPE_NORMAL_FOLDER, NID_TYPE_NORMAL_MESSAGE, NID_TYPE_OUTGOING_QUEUE_TABLE, NID_TYPE_RECEIVE_FOLDER_TABLE, NID_TYPE_RECIPIENT_TABLE, NID_TYPE_SEARCH_CONTENTS_TABLE, NID_TYPE_SEARCH_CRITERIA_OBJECT, NID_TYPE_SEARCH_FOLDER, NID_TYPE_SEARCH_TABLE_INDEX, NID_TYPE_SEARCH_UPDATE_QUEUE, pstFile, table
Constructor and Description |
---|
PSTMessage(PSTFile theFile,
DescriptorIndexNode descriptorIndexNode) |
PSTMessage(PSTFile theFile,
DescriptorIndexNode folderIndexNode,
PSTTableBC table,
java.util.HashMap<java.lang.Integer,PSTDescriptorItem> localDescriptorItems) |
Modifier and Type | Method and Description |
---|---|
int |
getAcknowledgementMode()
Acknowledgment mode Integer 32-bit signed
|
java.util.Date |
getActionDate()
the date that this item had an action performed (eg.
|
int |
getActionFlag()
Action flag
This relates to the replying / forwarding of messages.
|
PSTAttachment |
getAttachment(int attachmentNumber)
get a specific attachment from this email.
|
boolean |
getAttrHidden()
Attribute hidden
|
boolean |
getAttrReadonly()
Attribute read only
|
boolean |
getAttrSystem()
Attribute system
|
java.lang.String |
getBody()
Plain text e-mail body
|
java.lang.String |
getBodyHTML()
HTML e-mail body
|
java.lang.String |
getBodyPrefix() |
java.util.Date |
getClientSubmitTime()
get the client submit time
|
java.lang.String[] |
getColorCategories()
get the categories defined for this message
|
byte[] |
getConversationId() |
PSTConversationIndex |
getConversationIndex() |
java.lang.String |
getConversationTopic()
Conversation topic
This is basically the subject from which Fwd:, Re, etc.
|
boolean |
getDeleteAfterSubmit()
Delete after submit
|
boolean |
getDisableFullFidelity()
Disable full fidelity
|
java.lang.String |
getDisplayBCC()
Display BCC
|
java.lang.String |
getDisplayCC()
Display CC
|
java.lang.String |
getDisplayTo()
Display To
|
int |
getIconIndex()
Icon index
|
int |
getImportance()
get the importance of the email
|
java.lang.String |
getInReplyToId()
In-Reply-To
|
int |
getInternetArticleNumber()
Internet article number
|
java.lang.String |
getInternetMessageId()
Message ID for this email as allocated per rfc2822
|
boolean |
getMessageCcMe()
My address in CC field Boolean
|
java.lang.String |
getMessageClass()
get the message class for the email
|
java.util.Date |
getMessageDeliveryTime()
Message delivery time
|
boolean |
getMessageRecipMe()
Indicates that the receiving mailbox owner is a primary or a carbon copy
(Cc) recipient
|
long |
getMessageSize()
Message size
|
boolean |
getMessageToMe()
My address in To field Boolean
|
int |
getNativeBodyType()
Message content properties
|
java.lang.String |
getNextSendAcct() |
int |
getNumberOfAttachments()
get the number of attachments for this message
|
int |
getNumberOfRecipients()
get the number of recipients for this message
|
int |
getObjectType()
Object type
|
java.lang.String |
getOriginalDisplayBcc()
Original display BCC ASCII or Unicode string
|
java.lang.String |
getOriginalDisplayCc()
Original display CC ASCII or Unicode string
|
java.lang.String |
getOriginalDisplayTo()
Original display TO ASCII or Unicode string
|
int |
getOriginalSensitivity()
Original sensitivity Integer 32-bit signed the sensitivity of the message
before being replied to or forwarded 0 = None 1 = Personal 2 = Private 3
= Company Confidential
|
java.lang.String |
getOriginalSubject()
Original subject ASCII or Unicode string
|
boolean |
getOriginatorDeliveryReportRequested()
Originator delivery report requested set if the sender wants a delivery
report from all recipients 0 = false 0 != true
|
byte[] |
getPidTagSentRepresentingSearchKey() |
java.lang.String |
getPrimarySendAccount() |
int |
getPriority()
Priority Integer 32-bit signed -1 = NonUrgent 0 = Normal 1 = Urgent
|
java.lang.String |
getRcvdRepresentingAddrtype()
Received representing address type.
|
java.lang.String |
getRcvdRepresentingEmailAddress()
Received representing e-mail address
|
java.lang.String |
getRcvdRepresentingName()
Received representing name ASCII or Unicode string
|
boolean |
getReadReceiptRequested()
Read Receipt Requested Boolean 0 = false 0 != true
|
java.lang.String |
getReceivedByAddress()
Received by email address
|
java.lang.String |
getReceivedByAddressType()
Received by address type
Known values are SMTP, EX (Exchange) and UNKNOWN
|
java.lang.String |
getReceivedByName()
get received by name
|
PSTRecipient |
getRecipient(int recipientNumber)
get a specific recipient from this email.
|
boolean |
getRecipientReassignmentProhibited()
Recipient Reassignment Prohibited Boolean 0 = false 0 != true
|
java.lang.String |
getRecipientsString() |
int |
getRecipientType()
Recipient type Integer 32-bit signed 0x01 => To 0x02 =>CC
|
int |
getReminderDelta() |
boolean |
getReminderSet()
Is a reminder set on this object?
|
java.lang.String |
getReplyRecipientNames()
Reply recipients names ASCII or Unicode string
|
boolean |
getResponseRequested()
Response requested Boolean
|
boolean |
getResponsibility()
Responsibility
|
java.lang.String |
getReturnPath()
Return Path
|
java.lang.String |
getRTFBody() |
int |
getRTFSyncBodyCount()
RTF Sync Body character count
|
int |
getRTFSyncBodyCRC()
RTF Sync Body CRC
|
java.lang.String |
getRTFSyncBodyTag()
RTF Sync body tag
|
int |
getRTFSyncPrefixCount()
RTF whitespace prefix count
|
int |
getRTFSyncTrailingCount()
RTF whitespace tailing count
|
java.lang.String |
getSenderAddrtype()
Sender address type.
|
java.lang.String |
getSenderEmailAddress()
Sender e-mail address
|
byte[] |
getSenderEntryId() |
java.lang.String |
getSenderName()
Sender name
|
int |
getSensitivity()
Sensitivity Integer 32-bit signed sender's opinion of the sensitivity of
an email 0 = None 1 = Personal 2 = Private 3 = Company Confidential
|
java.lang.String |
getSentRepresentingAddressType()
Sent representing address type
Known values are SMTP, EX (Exchange) and UNKNOWN
|
java.lang.String |
getSentRepresentingAddrtype()
Sent representing address type ASCII or Unicode string Known values are
SMTP, EX (Exchange) and UNKNOWN
|
java.lang.String |
getSentRepresentingEmailAddress()
Sent representing email address
|
java.lang.String |
getSentRepresentingName()
get sent representing name
|
java.lang.String |
getSubject()
get the subject
|
java.util.Date |
getTaskDueDate()
Due date Filetime
|
java.util.Date |
getTaskStartDate()
Start date Filetime
|
java.lang.String |
getTransportMessageHeaders()
Transport message headers ASCII or Unicode string These contain the SMTP
e-mail headers.
|
java.lang.String |
getURLCompName()
URL computer name
Contains the .eml file name
|
int |
getURLCompNamePostfix()
URL computer name postfix
|
boolean |
hasAttachments() |
boolean |
hasForwarded()
is the action flag for this item "forward"?
|
boolean |
hasReplied()
is the action flag for this item "replied"?
|
boolean |
isAssociated() |
boolean |
isConversationIndexTracking() |
boolean |
isFlagged()
"flagged" items are actually emails with a due date.
|
boolean |
isFromMe() |
boolean |
isNonReceiptNotificationRequested()
Non receipt notification requested
|
boolean |
isOriginatorNonDeliveryReportRequested()
Originator non delivery report requested
|
boolean |
isRead() |
boolean |
isReplyRequested()
Reply requested
|
boolean |
isResent() |
boolean |
isRTFInSync()
Compressed RTF in Sync Boolean
|
boolean |
isSubmitted() |
boolean |
isUnmodified() |
boolean |
isUnsent() |
boolean |
isURLCompNameSet()
URL computer name set
|
private void |
processAttachments()
find, extract and load up all of the attachments in this email
necessary for the other operations.
|
private void |
processRecipients()
find, extract and load up all of the attachments in this email
necessary for the other operations.
|
java.lang.String |
toString()
string representation of this email
|
apptTimeToCalendar, apptTimeToUTC, convertBigEndianBytesToLong, convertLittleEndianBytesToLong, convertLittleEndianBytesToLong, createAppropriatePSTMessageObject, createJavaString, decode, detectAndLoadPSTObject, detectAndLoadPSTObject, encode, filetimeToDate, getAddrType, getBinaryItem, getBooleanItem, getBooleanItem, getComment, getCreationTime, getDateItem, getDescriptorNode, getDescriptorNodeId, getDisplayName, getDoubleItem, getDoubleItem, getEmailAddress, getIntItem, getIntItem, getItemsString, getLastModificationTime, getLongItem, getLongItem, getNodeType, getNodeType, getStringItem, getStringItem, getStringItem, getTimeZoneItem, guessPSTObjectType, printFormattedNumber, printFormattedNumber, printHexFormatted, printHexFormatted
public static final int IMPORTANCE_LOW
public static final int IMPORTANCE_NORMAL
public static final int IMPORTANCE_HIGH
public static final int RECIPIENT_TYPE_TO
public static final int RECIPIENT_TYPE_CC
private PSTTable7C recipientTable
private PSTTable7C attachmentTable
PSTMessage(PSTFile theFile, DescriptorIndexNode descriptorIndexNode) throws PSTException, java.io.IOException
PSTException
java.io.IOException
PSTMessage(PSTFile theFile, DescriptorIndexNode folderIndexNode, PSTTableBC table, java.util.HashMap<java.lang.Integer,PSTDescriptorItem> localDescriptorItems)
public java.lang.String getRTFBody() throws PSTException, java.io.IOException
PSTException
java.io.IOException
public int getImportance()
public java.lang.String getMessageClass()
getMessageClass
in class PSTObject
public java.lang.String getSubject()
public java.util.Date getClientSubmitTime()
public java.lang.String getReceivedByName()
public java.lang.String getSentRepresentingName()
public java.lang.String getSentRepresentingAddressType()
public java.lang.String getSentRepresentingEmailAddress()
public java.lang.String getConversationTopic()
public java.lang.String getReceivedByAddressType()
public java.lang.String getReceivedByAddress()
public java.lang.String getTransportMessageHeaders()
public boolean isRead()
public boolean isUnmodified()
public boolean isSubmitted()
public boolean isUnsent()
public boolean hasAttachments()
public boolean isFromMe()
public boolean isAssociated()
public boolean isResent()
public int getAcknowledgementMode()
public boolean getOriginatorDeliveryReportRequested()
public int getPriority()
public boolean getReadReceiptRequested()
public boolean getRecipientReassignmentProhibited()
public int getOriginalSensitivity()
public int getSensitivity()
public byte[] getPidTagSentRepresentingSearchKey()
public java.lang.String getRcvdRepresentingName()
public java.lang.String getOriginalSubject()
public java.lang.String getReplyRecipientNames()
public boolean getMessageToMe()
public boolean getMessageCcMe()
public boolean getMessageRecipMe()
public boolean getResponseRequested()
public java.lang.String getSentRepresentingAddrtype()
public java.lang.String getOriginalDisplayBcc()
public java.lang.String getOriginalDisplayCc()
public java.lang.String getOriginalDisplayTo()
public java.lang.String getRcvdRepresentingAddrtype()
public java.lang.String getRcvdRepresentingEmailAddress()
public boolean isNonReceiptNotificationRequested()
public boolean isOriginatorNonDeliveryReportRequested()
public int getRecipientType()
public boolean isReplyRequested()
public byte[] getSenderEntryId()
public java.lang.String getSenderName()
public java.lang.String getSenderAddrtype()
public java.lang.String getSenderEmailAddress()
public long getMessageSize()
public int getInternetArticleNumber()
public java.lang.String getPrimarySendAccount()
public java.lang.String getNextSendAcct()
public int getURLCompNamePostfix()
public int getObjectType()
public boolean getDeleteAfterSubmit()
public boolean getResponsibility()
public boolean isRTFInSync()
public boolean isURLCompNameSet()
public java.lang.String getDisplayBCC()
public java.lang.String getDisplayCC()
public java.lang.String getDisplayTo()
public java.util.Date getMessageDeliveryTime()
public int getNativeBodyType()
public java.lang.String getBody()
public java.lang.String getBodyPrefix()
public int getRTFSyncBodyCRC()
public int getRTFSyncBodyCount()
public java.lang.String getRTFSyncBodyTag()
public int getRTFSyncPrefixCount()
public int getRTFSyncTrailingCount()
public java.lang.String getBodyHTML()
public java.lang.String getInternetMessageId()
public java.lang.String getInReplyToId()
public java.lang.String getReturnPath()
public int getIconIndex()
public int getActionFlag()
public boolean hasForwarded()
public boolean hasReplied()
public java.util.Date getActionDate()
public boolean getDisableFullFidelity()
public java.lang.String getURLCompName()
public boolean getAttrHidden()
public boolean getAttrSystem()
public boolean getAttrReadonly()
private void processRecipients()
PSTException
java.io.IOException
public int getNumberOfRecipients() throws PSTException, java.io.IOException
PSTException
java.io.IOException
private void processAttachments() throws PSTException, java.io.IOException
PSTException
java.io.IOException
public java.util.Date getTaskStartDate()
public java.util.Date getTaskDueDate()
public boolean getReminderSet()
public int getReminderDelta()
public boolean isFlagged()
public java.lang.String[] getColorCategories() throws PSTException
PSTException
public int getNumberOfAttachments()
PSTException
java.io.IOException
public PSTAttachment getAttachment(int attachmentNumber) throws PSTException, java.io.IOException
attachmentNumber
- PSTException
java.io.IOException
public PSTRecipient getRecipient(int recipientNumber) throws PSTException, java.io.IOException
recipientNumber
- PSTException
java.io.IOException
public java.lang.String getRecipientsString()
public byte[] getConversationId()
public PSTConversationIndex getConversationIndex()
public boolean isConversationIndexTracking()