Move away from authsource

This commit is contained in:
Alexander Rosenberg 2024-08-07 15:31:05 -07:00
parent 664d14e2bb
commit 8dec450394
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/tree-sitter/
/tramp
/dape-breakpoints
/private.el

View File

@ -1279,8 +1279,7 @@ If no name is given, list all bookmarks instead."
(require 'khard)
;; mu4e
(require 'auth-source-pass)
(auth-source-pass-enable)
(load (expand-file-name "private.el" user-emacs-directory) t)
(use-package mu4e
:ensure nil
:defer nil
@ -1323,8 +1322,8 @@ If no name is given, list all bookmarks instead."
(string-match-p "^/protonmail/"
(mu4e-message-field msg
:maildir))))
:vars `((user-mail-address . ,(auth-source-pass-get "email" "emacs/mu4e-protonmail"))
(user-full-name . ,(auth-source-pass-get "name" "emacs/mu4e-protonmail"))
:vars `((user-mail-address . ,(alist-get 'email my/mu4e-private-config))
(user-full-name . ,(alist-get 'name my/mu4e-private-config))
(message-signature . nil)
(mu4e-refile-folder . "/protonmail/Archive")
(mu4e-sent-folder . "/protonmail/Sent")