summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexey Abramov <levenson@mmer.org>2020-09-08 15:53:45 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2021-05-06 11:08:52 +0200
commit5b5c50961fc3c2c95cb97796369ec918cbff064f (patch)
tree4a96455252b29ca90befdd22a2101ebba8cf26b9
parentba9db4c886beb355737c66e77b66890c34b8f470 (diff)
downloadguix-5b5c50961fc3c2c95cb97796369ec918cbff064f.tar.gz
services: dovecot: Add ‘mail-attribute-dict’ configuration option.
* gnu/services/mail.scm (dovecot-configuration): Define a
‘mail-attribute-dict’ directive for IMAP METADATA storage.
* doc/guix.texi (Mail Services): Document it.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
-rw-r--r--doc/guix.texi11
-rw-r--r--gnu/services/mail.scm8
2 files changed, 19 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index ae130e6eba..2e00e38f7c 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -20768,6 +20768,17 @@ could allow a user to delete others' mailboxes, or @code{ln -s
 @samp{""}.
 @end deftypevr
 
+@deftypevr {@code{dovecot-configuration} parameter} string mail-attribute-dict
+The location of a dictionary used to store @code{IMAP METADATA}
+as defined by @uref{https://tools.ietf.org/html/rfc5464, RFC@tie{}5464}.
+
+The IMAP METADATA commands are available only if the ``imap''
+protocol configuration's @code{imap-metadata?} field is @samp{#t}.
+
+Defaults to @samp{""}.
+
+@end deftypevr
+
 @deftypevr {@code{dovecot-configuration} parameter} boolean mail-full-filesystem-access?
 Allow full file system access to clients.  There's no access checks
 other than what the operating system does for the active UID/GID@.  It
diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm
index 81f692e437..26e631fd9d 100644
--- a/gnu/services/mail.scm
+++ b/gnu/services/mail.scm
@@ -1133,6 +1133,14 @@ disabled.")
 @samp{mdbox-rotate-size}.  This setting currently works only in Linux
 with some file systems (ext4, xfs).")
 
+  (mail-attribute-dict
+   (string "")
+   "The location of a dictionary used to store @code{IMAP METADATA}
+as defined by @uref{https://tools.ietf.org/html/rfc5464, RFC@tie{}5464}.
+
+The IMAP METADATA commands are available only if the ``imap''
+protocol configuration's @code{imap-metadata?} field is @samp{#t}.")
+
   (mail-attachment-dir
    (string "")
    "sdbox and mdbox support saving mail attachments to external files,