# Microsoft Outlook (MSG) Metadata

In addition to the default metadata set, the metadata fields listed in the following table can be extracted for MSG files. The field name must be passed to `metaNameArray` in the call to the `ExtractGetSubFileMetadata` method.

MSG-specific metadata list

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: `"PR_SENDER_NAME" <PR_SENDER_EMAIL_ADDRESS>` The `Sender` value might be the same as or different than the default metadata `From` value (see Default Metadata Set), depending on which MAPI properties exist in the MSG file.
`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.

## Extract MSG-Specific Metadata

To extract specific metadata fields from an MSG file, use the method `ExtractGetSubFileMetadata(int extractFileId, int metadataID, string metaDataName)` and pass the field name defined in the table to `metaNameArray` (the string is not case sensitive).

For example, the following code extracts the contents of the `ConversationTopic` and `MessageID` fields:

    int[] metaIDs = null;
    string[] metaDataName = new string[2] {"conversationtopic", "MessageID"};

    m_objFilter.SetMetaConfig();

    ExtractSubFileMetadata metadata;
    metadata = m_objFilter.ExtractGetSubFileMetadata(extContextId, metaIDs, metaDataName);

_FT_HTML5_bannerTitle.htm