# MailStorageFormat

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MailStorageFormat/

Target save as type.

- **Full name:** `MFiles.MailStorageFormat`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-MAIL_STORAGE_FORMAT_NONE"></a>`MAIL_STORAGE_FORMAT_NONE` | 0 | Undefined. |
| <a id="v-MAIL_STORAGE_FORMAT_TXT"></a>`MAIL_STORAGE_FORMAT_TXT` | 1 | The message should stored in plain text file. (*.txt) |
| <a id="v-MAIL_STORAGE_FORMAT_MSG"></a>`MAIL_STORAGE_FORMAT_MSG` | 2 | Outlook message format. |
| <a id="v-MAIL_STORAGE_FORMAT_EML"></a>`MAIL_STORAGE_FORMAT_EML` | 3 | Raw RFC-822 format. |

<a id="used-in-fields"></a>

## Used in fields

- [`MailSource.storage_format`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MailSource/index.md#f-storage_format): The storage format in which the emails are stored.
