MailSource

View as Markdown

Mail source specific fields.

Full nameMFiles.MailSource
Proto filemfiles/structs.proto

Fields

FieldTypeNumberDescription
protocolMailProtocol1The 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).
serverstring2The name or address of the mail server.
impersonationImpersonation3Login information for accessing the mail server.
portuint324Mail server port.
use_sslbool5True to use SSL when communicating with the server.
connection_timeoutuint326Timeout for server communication (in seconds).
imap_folderstring7Mailbox folder name (IMAP4 only).
delete_after_importbool8True to delete the message after importing.
remove_attachments_from_serverbool9True to remove attachments from the original message on the server.
include_attachmentsbool10True to include attachments.
only_messages_with_attachmentsbool11True to import only messages that contain attachments.
convert_body_to_plain_textbool12True to convert HTML messages to plain text.
save_body_to_filebool13True to save the message body into a file.
embed_attachmentsbool14True if the attachments should be saved as a part of the message.
storage_formatMailStorageFormat15The 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_daysuint3216Maximum e-mail age. After this the e-mails will be archived.
mail_source_auth_typeMailSourceAuthType17The 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_oauth2MailSourceOauth218OAuth2 specific data.

Used in fields