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"