[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#42899] [PATCH v4 4/8] services: dovecot: Only serialize settings wi
From: |
Alexey Abramov |
Subject: |
[bug#42899] [PATCH v4 4/8] services: dovecot: Only serialize settings with non-empty values. |
Date: |
Tue, 8 Sep 2020 15:53:44 +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 v4 1/8] gnu: dovecot: Set moduledir to global directory., Alexey Abramov, 2020/09/08
- [bug#42899] [PATCH v4 2/8] services: dovecot: Use modules via symlink to system profile., Alexey Abramov, 2020/09/08
- [bug#42899] [PATCH v4 3/8] services: dovecot: Serialize global settings first., Alexey Abramov, 2020/09/08
- [bug#42899] [PATCH v4 6/8] services: dovecot: Add 'imap-metadata?' protocol configuration option., Alexey Abramov, 2020/09/08
- [bug#42899] [PATCH v4 8/8] services: dovecot: Add 'managesieve-sieve-capability' option., Alexey Abramov, 2020/09/08
- [bug#42899] [PATCH v4 4/8] services: dovecot: Only serialize settings with non-empty values.,
Alexey Abramov <=
- [bug#42899] [PATCH v4 5/8] services: dovecot: Add 'mail-attribute-dict' configuration option., Alexey Abramov, 2020/09/08
- [bug#42899] [PATCH v4 7/8] services: dovecot: Add 'managesieve-notify-capability' option., Alexey Abramov, 2020/09/08
- [bug#42899] [PATCH v4 1/8] gnu: dovecot: Set moduledir to global directory., Tobias Geerinckx-Rice, 2020/09/08