# 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"};

    m_objFilter.SetMetaConfig();

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

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm