Microsoft Outlook Express (EML) and Mailbox (MBX) Metadata
In addition to the default metadata set, you can extract any metadata field that exists in the header of an EML or MBX file by passing the field's name. If the name is a valid field in the file, the contents of the field are returned. For example, to retrieve the name of the last mail server that received the message before it was delivered, you can pass the string "Received
".
To extract specific metadata fields from an EML or MBX file, use the following method:
ExtractGetSubFileMetadata(long docContextID, int sIndex, string[] metaDataName)
Pass the metadata field names into the method using the metaDataName
argument (the strings are not case sensitive).
For example, the following code extracts the contents of the Received
and Mime-version
fields:
string[] metaDataName = { "Received", "Mime-version" }; ExtractSubFileMetadata metadata = objFilter.ExtractGetSubFileMetadata(extContextId, subfileIndex, metaDataName);