Microsoft Outlook (MSG) Metadata
In addition to the default metadata set, for MSG files you can extract the metadata fields listed in the following table.
You must pass the field names using the metaDataName
argument, when you call the ExtractGetSubFileMetadata
method. You can also add specific string named properties to the metaDataName
argument to search for and extract those properties.
Field Name (string to specify) | Description |
---|---|
AttachFileName
|
An attachment's long file name and extension, excluding path. |
ConversationTopic
|
The topic of the first message in a conversation thread. A conversation thread is a series of messages and replies. This is the first message's subject with any prefix removed. |
CreationTime
|
The time the message or attachment was created. This value is displayed in the Sent field in the message's Properties dialog in Outlook. |
InternetMessageID
|
The identifier for messages that come in over the Internet. This is the MAPI property PR_INTERNET_MESSAGE_ID . This property is not in the MAPI headers or MAPI documentation. |
LastModificationTime
|
The time the message or attachment was last modified. This value is displayed in the Modified field in the message's Properties dialog in Outlook. |
MessageID
|
The message transfer system (MTS) identifier for the message transfer agent (MTA). This value is displayed on the Message ID tab in the message's Properties dialog in Outlook. |
Received
|
The date and time a message was delivered. This value is displayed in the Received field in the message's Properties dialog in Outlook. |
Sender
|
The name and email address of the message sender. This value is a concatenation of two MAPI properties in the following format:
The |
Sensitivity
|
The value indicating the message sender's opinion of the sensitivity of a message, such as Personal, Private, or Confidential. This value is displayed in the Sensitivity field in the message's Properties dialog in Outlook. |
TransportMsgHeaders
|
Contains transport-specific message envelope information. This value corresponds to the MAPI property PR_TRANSPORT_MESSAGE_HEADERS . |
StartDate
|
Contains an appointment start date. This value corresponds to the PR_START_DATE MAPI property. |
EndDate
|
Contains an appointment end date. This value corresponds to the PR_END_DATE MAPI property. |
To extract specific metadata fields from an MSG file, use the following method:
ExtractGetSubFileMetadata(long docContextID, int sIndex, string[] metaDataName)
Pass in the field names defined in the table (above) using the metaDataName
argument. The strings are not case-sensitive.
For example, the following code extracts the contents of the ConversationTopic
and MessageID
fields:
string[] metaDataName = { "ConversationTopic", "MessageID" }; ExtractSubFileMetadata metadata = objFilter.ExtractGetSubFileMetadata(extContextId, subfileIndex, metaDataName);