# Document Update Content Type Email
Updates the content type and email metadata of .msg and .eml files in a document library, by processing rows from an Excel file. The email content type name is taken from the DMS configuration list.
Filename pattern: filename must contain DocumentUpdateContentTypeEmail (case-insensitive).
Example: 20240115 DocumentUpdateContentTypeEmail repair.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| DoclibUrl / Url | Conditional | Server-relative URL of the document library. Required when MatterCode is not provided. |
| MatterCode | Conditional | Matter code used to resolve document libraries from the matter list. Required when Url is not provided. Processes all document libraries for the matter. |
| ClientCode | No | Client code used together with MatterCode to identify the matter. |
Either Url or MatterCode must be provided. No content type name is provided in the Excel file — the email content type is determined automatically from the DMS configuration list.
# Behavior
For each .msg and .eml file in the library, the handler:
- Ensures the DMS email content type is present on the library.
- Downloads the file and extracts email metadata from its content.
- Updates the file's
ContentTypeIdand email metadata fields usingUpdateSystem(preserving modified date).
# Related links
- Document Update Content Type handler — update content type for non-email documents
- Doclib Content Types handler — add or remove content types from a library