changeset 22874:caa0b245c353

example-config: Add mail_attachment_detection_options
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 28 Feb 2018 15:09:02 +0200
parents 61143106dee6
children 1984770187f7
files doc/example-config/conf.d/10-mail.conf
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/example-config/conf.d/10-mail.conf	Fri Feb 16 16:03:46 2018 +0200
+++ b/doc/example-config/conf.d/10-mail.conf	Wed Feb 28 15:09:02 2018 +0200
@@ -399,3 +399,13 @@
 # variables: %{md4}, %{md5}, %{sha1}, %{sha256}, %{sha512}, %{size}.
 # Variables can be truncated, e.g. %{sha256:80} returns only first 80 bits
 #mail_attachment_hash = %{sha1}
+
+# Settings to control adding $HasAttachment or $HasNoAttachment keywords.
+# By default, all MIME parts with Content-Disposition=attachment, or inlines
+# with filename parameter are consired attachments.
+#   add-flags-on-save - Add the keywords when saving new mails.
+#   content-type=type or !type - Include/exclude content type. Excluding will
+#     never consider the matched MIME part as attachment. Including will only
+#     negate an exclusion (e.g. content-type=!foo/* content-type=foo/bar).
+#   exclude-inlined - Exclude any Content-Disposition=inline MIME part.
+#mail_attachment_detection_options =