changeset 12324:d55afae11f89

example-config: Added mail_attachment_* settings.
author Timo Sirainen <tss@iki.fi>
date Wed, 20 Oct 2010 19:30:12 +0100
parents 82a1bdac2e4e
children ca2f5af61e7d
files doc/example-config/conf.d/10-mail.conf
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/example-config/conf.d/10-mail.conf	Wed Oct 20 18:58:42 2010 +0100
+++ b/doc/example-config/conf.d/10-mail.conf	Wed Oct 20 19:30:12 2010 +0100
@@ -315,3 +315,29 @@
 # mdbox_rotate_size. This setting currently works only in Linux with some
 # filesystems (ext4, xfs).
 #mdbox_preallocate_space = no
+
+##
+## Mail attachments
+##
+
+# sdbox and mdbox support saving mail attachments to external files, which
+# also allows single instance storage for them. Other backends don't support
+# this for now.
+
+# Directory root where to store mail attachments. Disabled, if empty.
+#mail_attachment_dir =
+
+# Attachments smaller than this aren't saved externally. It's also possible to
+# write a plugin to disable saving specific attachments externally.
+#mail_attachment_min_size = 128k
+
+# Filesystem backend to use for saving attachments:
+#  posix : No SiS done by Dovecot (but this might help FS's own deduplication)
+#  sis posix : SiS with immediate byte-by-byte comparison during saving
+#  sis-queue posix : SiS with delayed comparison and deduplication
+#mail_attachment_fs = sis posix
+
+# Hash format to use in attachment filenames. You can add any text and
+# variables: %{md4}, %{md5}, %{sha1}, %{sha256}, %{sha512}, %{size}.
+# Variables can be truncated, e.g. %{sha256:80} returns only first 80 bits
+#mail_attachment_hash = %{sha1}