Package com.pff
Class PSTMessage
java.lang.Object
com.pff.PSTObject
com.pff.PSTMessage
- Direct Known Subclasses:
PSTActivity,PSTAppointment,PSTContact,PSTDistList,PSTRss,PSTTask
PST Message contains functions that are common across most MAPI objects.
Note that many of these functions may not be applicable for the item in question,
however there seems to be no hard and fast outline for what properties apply to which
objects. For properties where no value is set, a blank value is returned (rather than
an exception being raised).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PSTTable7Cattachment 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 propertystatic final intstatic final intstatic final intstatic final intstatic final intprivate PSTTable7CFields inherited from class com.pff.PSTObject
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 Summary
ConstructorsConstructorDescriptionPSTMessage(PSTFile theFile, DescriptorIndexNode descriptorIndexNode) PSTMessage(PSTFile theFile, DescriptorIndexNode folderIndexNode, PSTTableBC table, HashMap<Integer, PSTDescriptorItem> localDescriptorItems) -
Method Summary
Modifier and TypeMethodDescriptionintAcknowledgment mode Integer 32-bit signedthe date that this item had an action performed (eg.intAction flag This relates to the replying / forwarding of messages.getAttachment(int attachmentNumber) get a specific attachment from this email.booleanAttribute hiddenbooleanAttribute read onlybooleanAttribute systemgetBody()Plain text e-mail bodyHTML e-mail bodyget the client submit timeString[]get the categories defined for this messageConversation topic This is basically the subject from which Fwd:, Re, etc.booleanDelete after submitbooleanDisable full fidelityDisplay BCCDisplay CCDisplay TointIcon indexintget the importance of the emailIn-Reply-TointInternet article numberMessage ID for this email as allocated per rfc2822booleanMy address in CC field Booleanget the message class for the emailMessage delivery timeMessage addressed to me ASCII or Unicode stringlongMessage sizebooleanMy address in To field Booleanintget the number of attachments for this messageintget the number of recipients for this messageintObject typeOriginal display BCC ASCII or Unicode stringOriginal display CC ASCII or Unicode stringOriginal display TO ASCII or Unicode stringintOriginal sensitivity Integer 32-bit signed the sensitivity of the message before being replied to or forwarded 0 = None 1 = Personal 2 = Private 3 = Company ConfidentialOriginal subject ASCII or Unicode stringbooleanOriginator delivery report requested set if the sender wants a delivery report from all recipients 0 = false 0 != truebyte[]intPriority Integer 32-bit signed -1 = NonUrgent 0 = Normal 1 = UrgentReceived representing address type.Received representing e-mail addressReceived representing name ASCII or Unicode stringbooleanRead Receipt Requested Boolean 0 = false 0 != trueReceived by email addressReceived by address type Known values are SMTP, EX (Exchange) and UNKNOWNget received by namegetRecipient(int recipientNumber) get a specific recipient from this email.booleanRecipient Reassignment Prohibited Boolean 0 = false 0 != trueintRecipient type Integer 32-bit signed 0x01 => To 0x02 =>CCintbooleanIs a reminder set on this object?Reply recipients names ASCII or Unicode stringbooleanResponse requested BooleanbooleanResponsibilityReturn PathintRTF Sync Body character countintRTF Sync Body CRCRTF Sync body tagintRTF whitespace prefix countintRTF whitespace tailing countSender address type.Sender e-mail addressbyte[]Sender nameintSensitivity Integer 32-bit signed sender's opinion of the sensitivity of an email 0 = None 1 = Personal 2 = Private 3 = Company ConfidentialSent representing address type Known values are SMTP, EX (Exchange) and UNKNOWNSent representing address type ASCII or Unicode string Known values are SMTP, EX (Exchange) and UNKNOWNSent representing email addressget sent representing nameget the subjectDue date FiletimeStart date FiletimeTransport message headers ASCII or Unicode string These contain the SMTP e-mail headers.URL computer name Contains the .eml file nameintURL computer name postfixbooleanbooleanis the action flag for this item "forward"?booleanis the action flag for this item "replied"?booleanboolean"flagged" items are actually emails with a due date.booleanisFromMe()booleanNon receipt notification requestedbooleanOriginator non delivery report requestedbooleanisRead()booleanReply requestedbooleanisResent()booleanCompressed RTF in Sync BooleanbooleanbooleanbooleanisUnsent()booleanURL computer name setprivate voidfind, extract and load up all of the attachments in this email necessary for the other operations.private voidfind, extract and load up all of the attachments in this email necessary for the other operations.toString()string representation of this emailMethods inherited from class com.pff.PSTObject
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
-
Field Details
-
IMPORTANCE_LOW
public static final int IMPORTANCE_LOW- See Also:
-
IMPORTANCE_NORMAL
public static final int IMPORTANCE_NORMAL- See Also:
-
IMPORTANCE_HIGH
public static final int IMPORTANCE_HIGH- See Also:
-
RECIPIENT_TYPE_TO
public static final int RECIPIENT_TYPE_TO- See Also:
-
RECIPIENT_TYPE_CC
public static final int RECIPIENT_TYPE_CC- See Also:
-
recipientTable
-
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
-
-
Constructor Details
-
PSTMessage
PSTMessage(PSTFile theFile, DescriptorIndexNode descriptorIndexNode) throws PSTException, IOException - Throws:
PSTExceptionIOException
-
PSTMessage
PSTMessage(PSTFile theFile, DescriptorIndexNode folderIndexNode, PSTTableBC table, HashMap<Integer, PSTDescriptorItem> localDescriptorItems)
-
-
Method Details
-
getRTFBody
- Throws:
PSTExceptionIOException
-
getImportance
public int getImportance()get the importance of the email- Returns:
- IMPORTANCE_NORMAL if unknown
-
getMessageClass
get the message class for the email- Overrides:
getMessageClassin classPSTObject- Returns:
- empty string if unknown
-
getSubject
get the subject- Returns:
- empty string if not found
-
getClientSubmitTime
get the client submit time- Returns:
- null if not found
-
getReceivedByName
get received by name- Returns:
- empty string if not found
-
getSentRepresentingName
get sent representing name- Returns:
- empty string if not found
-
getSentRepresentingAddressType
Sent representing address type Known values are SMTP, EX (Exchange) and UNKNOWN- Returns:
- empty string if not found
-
getSentRepresentingEmailAddress
Sent representing email address- Returns:
- empty string if not found
-
getConversationTopic
Conversation topic This is basically the subject from which Fwd:, Re, etc. has been removed- Returns:
- empty string if not found
-
getReceivedByAddressType
Received by address type Known values are SMTP, EX (Exchange) and UNKNOWN- Returns:
- empty string if not found
-
getReceivedByAddress
Received by email address- Returns:
- empty string if not found
-
getTransportMessageHeaders
Transport message headers ASCII or Unicode string These contain the SMTP e-mail headers. -
isRead
public boolean isRead() -
isUnmodified
public boolean isUnmodified() -
isSubmitted
public boolean isSubmitted() -
isUnsent
public boolean isUnsent() -
hasAttachments
public boolean hasAttachments() -
isFromMe
public boolean isFromMe() -
isAssociated
public boolean isAssociated() -
isResent
public boolean isResent() -
getAcknowledgementMode
public int getAcknowledgementMode()Acknowledgment mode Integer 32-bit signed -
getOriginatorDeliveryReportRequested
public boolean getOriginatorDeliveryReportRequested()Originator delivery report requested set if the sender wants a delivery report from all recipients 0 = false 0 != true -
getPriority
public int getPriority()Priority Integer 32-bit signed -1 = NonUrgent 0 = Normal 1 = Urgent -
getReadReceiptRequested
public boolean getReadReceiptRequested()Read Receipt Requested Boolean 0 = false 0 != true -
getRecipientReassignmentProhibited
public boolean getRecipientReassignmentProhibited()Recipient Reassignment Prohibited Boolean 0 = false 0 != true -
getOriginalSensitivity
public 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 -
getSensitivity
public 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 -
getPidTagSentRepresentingSearchKey
public byte[] getPidTagSentRepresentingSearchKey() -
getRcvdRepresentingName
Received representing name ASCII or Unicode string -
getOriginalSubject
Original subject ASCII or Unicode string -
getReplyRecipientNames
Reply recipients names ASCII or Unicode string -
getMessageToMe
public boolean getMessageToMe()My address in To field Boolean -
getMessageCcMe
public boolean getMessageCcMe()My address in CC field Boolean -
getMessageRecipMe
Message addressed to me ASCII or Unicode string -
getResponseRequested
public boolean getResponseRequested()Response requested Boolean -
getSentRepresentingAddrtype
Sent representing address type ASCII or Unicode string Known values are SMTP, EX (Exchange) and UNKNOWN -
getOriginalDisplayBcc
Original display BCC ASCII or Unicode string -
getOriginalDisplayCc
Original display CC ASCII or Unicode string -
getOriginalDisplayTo
Original display TO ASCII or Unicode string -
getRcvdRepresentingAddrtype
Received representing address type. Known values are SMTP, EX (Exchange) and UNKNOWN -
getRcvdRepresentingEmailAddress
Received representing e-mail address -
isNonReceiptNotificationRequested
public boolean isNonReceiptNotificationRequested()Non receipt notification requested -
isOriginatorNonDeliveryReportRequested
public boolean isOriginatorNonDeliveryReportRequested()Originator non delivery report requested -
getRecipientType
public int getRecipientType()Recipient type Integer 32-bit signed 0x01 => To 0x02 =>CC -
isReplyRequested
public boolean isReplyRequested()Reply requested -
getSenderEntryId
public byte[] getSenderEntryId() -
getSenderName
Sender name -
getSenderAddrtype
Sender address type. Known values are SMTP, EX (Exchange) and UNKNOWN -
getSenderEmailAddress
Sender e-mail address -
getMessageSize
public long getMessageSize()Message size -
getInternetArticleNumber
public int getInternetArticleNumber()Internet article number -
getPrimarySendAccount
-
getNextSendAcct
-
getURLCompNamePostfix
public int getURLCompNamePostfix()URL computer name postfix -
getObjectType
public int getObjectType()Object type -
getDeleteAfterSubmit
public boolean getDeleteAfterSubmit()Delete after submit -
getResponsibility
public boolean getResponsibility()Responsibility -
isRTFInSync
public boolean isRTFInSync()Compressed RTF in Sync Boolean -
isURLCompNameSet
public boolean isURLCompNameSet()URL computer name set -
getDisplayBCC
Display BCC -
getDisplayCC
Display CC -
getDisplayTo
Display To -
getMessageDeliveryTime
Message delivery time -
getBody
Plain text e-mail body -
getBodyPrefix
-
getRTFSyncBodyCRC
public int getRTFSyncBodyCRC()RTF Sync Body CRC -
getRTFSyncBodyCount
public int getRTFSyncBodyCount()RTF Sync Body character count -
getRTFSyncBodyTag
RTF Sync body tag -
getRTFSyncPrefixCount
public int getRTFSyncPrefixCount()RTF whitespace prefix count -
getRTFSyncTrailingCount
public int getRTFSyncTrailingCount()RTF whitespace tailing count -
getBodyHTML
HTML e-mail body -
getInternetMessageId
Message ID for this email as allocated per rfc2822 -
getInReplyToId
In-Reply-To -
getReturnPath
Return Path -
getIconIndex
public int getIconIndex()Icon index -
getActionFlag
public int getActionFlag()Action flag This relates to the replying / forwarding of messages. It is classified as "unknown" atm, so just provided here in case someone works out what all the various flags mean. -
hasForwarded
public boolean hasForwarded()is the action flag for this item "forward"? -
hasReplied
public boolean hasReplied()is the action flag for this item "replied"? -
getActionDate
the date that this item had an action performed (eg. replied or forwarded) -
getDisableFullFidelity
public boolean getDisableFullFidelity()Disable full fidelity -
getURLCompName
URL computer name Contains the .eml file name -
getAttrHidden
public boolean getAttrHidden()Attribute hidden -
getAttrSystem
public boolean getAttrSystem()Attribute system -
getAttrReadonly
public boolean getAttrReadonly()Attribute read only -
processRecipients
private void processRecipients()find, extract and load up all of the attachments in this email necessary for the other operations.- Throws:
PSTExceptionIOException
-
getNumberOfRecipients
get the number of recipients for this message- Throws:
PSTExceptionIOException
-
processAttachments
find, extract and load up all of the attachments in this email necessary for the other operations.- Throws:
PSTExceptionIOException
-
getTaskStartDate
Start date Filetime -
getTaskDueDate
Due date Filetime -
getReminderSet
public boolean getReminderSet()Is a reminder set on this object?- Returns:
-
getReminderDelta
public int getReminderDelta() -
isFlagged
public boolean isFlagged()"flagged" items are actually emails with a due date. This convience method just checks to see if that is true. -
getColorCategories
get the categories defined for this message- Throws:
PSTException
-
getNumberOfAttachments
public int getNumberOfAttachments()get the number of attachments for this message- Throws:
PSTExceptionIOException
-
getAttachment
get a specific attachment from this email.- Parameters:
attachmentNumber-- Returns:
- the attachment at the defined index
- Throws:
PSTExceptionIOException
-
getRecipient
get a specific recipient from this email.- Parameters:
recipientNumber-- Returns:
- the recipient at the defined index
- Throws:
PSTExceptionIOException
-
getRecipientsString
-
toString
string representation of this email
-