From 14c239d9f5ba02c373a39dd0f1cf5332efef763f Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sun, 31 May 2020 18:30:47 -0400 Subject: [PATCH] Conditionally loading the bridge crt if it exist. --- emacs/config.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emacs/config.el b/emacs/config.el index e9426fb..4cd3be7 100644 --- a/emacs/config.el +++ b/emacs/config.el @@ -50,7 +50,12 @@ message-send-mail-function 'smtpmail-send-it smtpmail-auth-credentials "~/.authinfo.gpg" smtpmail-smtp-server "127.0.0.1" smtpmail-smtp-service 1025) -(add-to-list 'gnutls-trustfiles "~/.config/mbsync/transient/bridge.crt") + +(let ((bridgecert (expand-file-name "~/.config/mbsync/transient/bridge.crt"))) + (when (file-exists-p bridgecert) + (add-to-list 'gnutls-trustfiles bridgecert) + ) + ) (defcustom mu4e-bookmarks '(( :name "Unread messages"