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”.

Extract EML- or MBX-Specific Metadata

To extract specific metadata fields from an EML or MBX file, use the method ExtractGetSubFileMetadata(int extractFileId, int metadataID, string metaDataName) and pass the metadata name to metaNameArray (the string is not case sensitive).

For example, the following code extracts the contents of the Received and Mime-version fields:

int[] metaIDs = null;
string[] metaDataName = new string[2] {"Received", "Mime-version"};


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