Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions mip/develop/concept-email.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ ms.author: mbaldwin

MIP SDK supports decryption and encryption for email messages. Both .msg files, generated by Outlook or Exchange, and .rpmsg files are supported by the SDK although via slightly different methods.

> [!NOTE]
> As of MIP SDK 1.17, .eml files are supported. Handling is similar to .msg for labeling/protection scenarios and to .rpmsg for inspection scenarios, depending on the container format.

Common use cases for this scenario are:

- Decrypt mail and attachments for data loss prevention (DLP) inspection.
Expand Down Expand Up @@ -55,6 +52,15 @@ The .msg file protection operations pseudocode may look like:
- Construct `mip::FileHandler` that points to the file to be labeled.
- Select a label and use the `mip::FileHandler`'s `SetLabel` method to apply the label.

## Labeling of EML Files

As of MIP SDK 1.17, .eml files are supported. Handling is similar to .msg for labeling/protection scenarios and to .rpmsg for inspection scenarios, depending on the container format. When working with .eml files, you must set the *enable_eml_file_type* flag instead of *enable_msg_file_type*. If you've created a `FileEngineSettings` object called *engineSettings*, you'd set this property in .NET as follows:

```csharp
engineSettings.CustomSettings = new List<KeyValuePair<string, string>>();
engineSettings.CustomSettings.Add(new KeyValuePair<string, string>("enable_eml_file_type", "true"));
```

Refer to [Quickstart: List labels](quick-file-list-labels-cpp.md) for information on how to list labels.

## Changing Default Attachment Handling Behaviors
Expand Down