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>master
parent
dce464e940
commit
a16400919f
|
@ -99,7 +99,9 @@
|
||||||
(and (string? x) (not (string-index x #\space))))
|
(and (string? x) (not (string-index x #\space))))
|
||||||
val)))
|
val)))
|
||||||
(define (serialize-space-separated-string-list field-name 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)
|
(define (comma-separated-string-list? val)
|
||||||
(and (list? val)
|
(and (list? val)
|
||||||
|
|
Reference in New Issue