[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42899] [PATCH v3 5/9] services: dovecot: Only serialize settings wi
From: |
Alexey Abramov |
Subject: |
[bug#42899] [PATCH v3 5/9] services: dovecot: Only serialize settings with non-empty values. |
Date: |
Thu, 27 Aug 2020 17:17:39 +0200 |
* gnu/services/mail.scm (serialize-space-separated-string-list): Protocols
might have custom settings, which are not supported by other protocols. To
prevent dovecot/services from crashing, serialize settings that hold non-empty
values only.
---
gnu/services/mail.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/services/mail.scm b/gnu/services/mail.scm
index a3c48bdb99..6e166af2be 100644
--- a/gnu/services/mail.scm
+++ b/gnu/services/mail.scm
@@ -99,7 +99,9 @@
(and (string? x) (not (string-index x #\space))))
val)))
(define (serialize-space-separated-string-list field-name val)
- (serialize-field field-name (string-join val " ")))
+ (match val
+ (() #f)
+ (_ (serialize-field field-name (string-join val " ")))))
(define (comma-separated-string-list? val)
(and (list? val)
--
2.28.0
- [bug#42899] [PATCH v2 02/10] gnu: dovecot: Patch and provide a static path for module directory., (continued)
[bug#42899] [PATCH v2 01/10] gnu: dovecot: Add lucene library to support fts indexing., Efraim Flashner, 2020/08/23
[bug#42899] [PATCH 00/10] Dovecot improvements. Add support for pigeonhole., Efraim Flashner, 2020/08/23
[bug#42899] [PATCH v3 1/9] gnu: dovecot: Set moduledir to global directory., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 3/9] gnu: dovecot-pigeonhole: Add new variable., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 7/9] services: dovecot: Add 'imap-metadata?' protocol configuration option., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 2/9] services: dovecot: Use modules via symlink to system profile., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 9/9] services: dovecot: Add 'managesieve-sieve-capability' option., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 5/9] services: dovecot: Only serialize settings with non-empty values.,
Alexey Abramov <=
- [bug#42899] [PATCH v3 6/9] services: dovecot: Add 'mail-attribute-dict' configuration option., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 4/9] services: dovecot: Serialize global settings first., Alexey Abramov, 2020/08/27
- [bug#42899] [PATCH v3 8/9] services: dovecot: Add 'managesieve-notify-capability' option., Alexey Abramov, 2020/08/27