[PATCH rde 1/1] rde: mail: Allow unset emacs-ednc and gpg-primary-key values
Export this patch
---
src/rde/features/mail.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rde/features/mail.scm b/src/rde/features/mail.scm
index c4a580c7..6ef20ac6 100644
--- a/src/rde/features/mail.scm
+++ b/src/rde/features/mail.scm
@@ -220,7 +220,7 @@ function, which accepts config with rde values and returns a string."
(require-value 'emacs-client-create-frame config)
(require-value 'full-name config)
(define emacs-cmd (get-value 'emacs-client-create-frame config))
- (define gpg-primary-key (get-value 'gpg-primary-key config))
+ (define gpg-primary-key (get-value 'gpg-primary-key config #f))
(define msmtp (get-value 'msmtp config))
(define full-name (get-value 'full-name config))
@@ -986,7 +986,7 @@ control whether to NOTIFY? when new emails arrive."
'())
,@(if notify?
(cond
- ((get-value 'emacs-ednc config)
+ ((get-value 'emacs-ednc config #f)
(list
(cons 'onNewMailPost
#~(format
--
2.45.2
Thank you for the fix! Merged.
rde/patches/.build.yml: SUCCESS in 3m8s
[rde: mail: Allow unset values][0] from [Nicolas Graves][1]
[0]: https://lists.sr.ht/~abcdw/rde-devel/patches/54111
[1]: mailto:ngraves@ngraves.fr
✓ #1286064 SUCCESS rde/patches/.build.yml https://builds.sr.ht/~abcdw/job/1286064