MBSync, Notmuch and emacs-notmuch

This commit is contained in:
Andrea Ciceri 2022-04-13 12:13:40 +02:00
parent 94b40d62d2
commit f205170f72
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
3 changed files with 72 additions and 6 deletions

View file

@ -3,6 +3,8 @@
delete-old-versions 6
kept-old-versions 2
version-control t
create-lockfiles nil)
create-lockfiles nil
native-comp-async-report-warnings-errors nil
)
(provide 'config-emacs)

View file

@ -1,7 +1,9 @@
(use-package notmuch
:custom
(notmuch-archive-tags '("-unread"))
(notmuch-show-indent-content nil)
;;(notmuch-show-indent-content nil)
(notmuch-search-older-first nil)
(message-kill-buffer-on-exit t)
(notmuch-hello-sections
'(notmuch-hello-insert-header
notmuch-hello-insert-saved-searches
@ -20,4 +22,25 @@
("d" ("+deleted" "-inbox") "Delete")))
)
(use-package message
:config
(setq message-send-mail-function 'message-send-mail-with-sendmail
message-sendmail-f-is-evil t
message-sendmail-envelope-from nil ; 'header
message-sendmail-extra-arguments '("--read-envelope-from"))
(setq mml-secure-smime-sign-with-sender t)
(setq mml-secure-openpgp-sign-with-sender t)
;; Add signature by default
(add-hook 'message-setup-hook 'mml-secure-message-sign-pgpmime)
;; Verify other's signatures
(setq mm-verify-option 'always))
(use-package sendmail
:config
(setq mail-specify-envelope-from nil
send-mail-function 'message-send-mail-with-sendmail
sendmail-program "msmtp"))
(provide 'config-emails)