MailSource
Mail source specific fields.
| Full name | MFiles.MailSource |
|---|---|
| Proto file | mfiles/structs.proto |
Fields
| Field | Type | Number | Description |
|---|---|---|---|
protocol | MailProtocol | 1 | The e-mail protocol to use.Values: MAIL_PROTOCOL_NONE (0), MAIL_PROTOCOL_POP (1), MAIL_PROTOCOL_IMAP (2), MAIL_PROTOCOL_EXCHANGE (3), MAIL_PROTOCOL_REST_API (4), MAIL_PROTOCOL_IMAP4_PLUGIN (5). |
server | string | 2 | The name or address of the mail server. |
impersonation | Impersonation | 3 | Login information for accessing the mail server. |
port | uint32 | 4 | Mail server port. |
use_ssl | bool | 5 | True to use SSL when communicating with the server. |
connection_timeout | uint32 | 6 | Timeout for server communication (in seconds). |
imap_folder | string | 7 | Mailbox folder name (IMAP4 only). |
delete_after_import | bool | 8 | True to delete the message after importing. |
remove_attachments_from_server | bool | 9 | True to remove attachments from the original message on the server. |
include_attachments | bool | 10 | True to include attachments. |
only_messages_with_attachments | bool | 11 | True to import only messages that contain attachments. |
convert_body_to_plain_text | bool | 12 | True to convert HTML messages to plain text. |
save_body_to_file | bool | 13 | True to save the message body into a file. |
embed_attachments | bool | 14 | True if the attachments should be saved as a part of the message. |
storage_format | MailStorageFormat | 15 | The storage format in which the emails are stored.Values: MAIL_STORAGE_FORMAT_NONE (0), MAIL_STORAGE_FORMAT_TXT (1), MAIL_STORAGE_FORMAT_MSG (2), MAIL_STORAGE_FORMAT_EML (3). |
max_email_age_in_days | uint32 | 16 | Maximum e-mail age. After this the e-mails will be archived. |
mail_source_auth_type | MailSourceAuthType | 17 | The authentication method to use.Values: MAIL_SOURCE_AUTH_TYPE_NONE (0), MAIL_SOURCE_AUTH_TYPE_BASIC (1), MAIL_SOURCE_AUTH_TYPE_OAUTH2 (2). |
mail_source_oauth2 | MailSourceOauth2 | 18 | OAuth2 specific data. |
Used in fields
ExtLocUnion.mail_source-- Mail source definition.