[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/13: services: dovecot: Only serialize settings with non-empty values.
From: |
guix-commits |
Subject: |
03/13: services: dovecot: Only serialize settings with non-empty values. |
Date: |
Fri, 11 Sep 2020 10:40:50 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit a16400919f9e589b7161372c3c97f56b5cf52091
Author: Alexey Abramov <levenson@mmer.org>
AuthorDate: Tue Sep 8 15:53:44 2020 +0200
services: dovecot: Only serialize settings with non-empty values.
* 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.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
---
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 3029a68..291a2db 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)
- 04/13: gnu: svt-av1: Update to 0.8.5., (continued)
- 04/13: gnu: svt-av1: Update to 0.8.5., guix-commits, 2020/09/11
- 05/13: gnu: libwps: Update to 0.4.12., guix-commits, 2020/09/11
- 08/13: gnu: libostree: Update to 2020.6., guix-commits, 2020/09/11
- 12/13: gnu: samplv1: Update to 0.9.17., guix-commits, 2020/09/11
- 13/13: gnu: hangups: Update to 0.4.11., guix-commits, 2020/09/11
- 11/13: gnu: drumkv1: Update to 0.9.17., guix-commits, 2020/09/11
- 06/13: gnu: xonsh: Update to 0.9.21., guix-commits, 2020/09/11
- 07/13: gnu: highlight: Update to 3.58., guix-commits, 2020/09/11
- 09/13: gnu: moreutils: Update to 0.64., guix-commits, 2020/09/11
- 02/13: gnu: mcabber: Update to 1.1.1., guix-commits, 2020/09/11
- 03/13: services: dovecot: Only serialize settings with non-empty values.,
guix-commits <=
- 10/13: gnu: synthv1: Update to 0.9.17., guix-commits, 2020/09/11