2023-10-24 18:15:21 +01:00
|
|
|
(setq mail-user-agent 'notmuch-user-agent
|
2023-10-27 08:03:51 +01:00
|
|
|
sendmail-program (executable-find "msmtp")
|
|
|
|
send-mail-function #'smtpmail-send-it
|
|
|
|
message-sendmail-f-is-evil t
|
|
|
|
message-sendmail-extra-arguments '("--read-envelope-from")
|
|
|
|
message-send-mail-function #'message-send-mail-with-sendmail
|
|
|
|
message-kill-buffer-on-exit t
|
2023-10-24 18:15:21 +01:00
|
|
|
notmuch-search-oldest-first nil
|
2023-10-24 08:06:35 +01:00
|
|
|
notmuch-show-logo nil
|
2023-10-24 18:15:21 +01:00
|
|
|
notmuch-hello-thousands-separator ","
|
2023-10-28 10:32:58 +01:00
|
|
|
notmuch-archive-tags '("+archive" "-inbox")
|
2023-10-27 11:45:06 +01:00
|
|
|
notmuch-message-headers-visible nil
|
|
|
|
notmuch-multipart/alternative-discouraged '("text/plain" "multipart/related")
|
|
|
|
notmuch-show-all-multipart/alternative-parts nil
|
|
|
|
notmuch-hello-sections '(notmuch-hello-insert-header
|
|
|
|
notmuch-hello-insert-saved-searches
|
|
|
|
notmuch-hello-insert-inbox
|
|
|
|
notmuch-hello-insert-alltags)
|
2023-10-24 18:20:48 +01:00
|
|
|
notmuch-fcc-dirs '((".*@xenia.me.uk" . "Proton/Sent")
|
|
|
|
(".*@proton.me" . "Proton/Sent")
|
|
|
|
(".*@litherlandsmith.slmail.me" . "Proton/Sent")
|
2023-10-24 18:15:21 +01:00
|
|
|
(".*@icloud.com" . "iCloud/Sent")
|
2023-10-24 18:20:48 +01:00
|
|
|
(".*@ukaea.uk" . "Outlook/Sent")
|
|
|
|
(".*@jet.uk" . "Outlook/Sent"))
|
2023-10-28 09:27:36 +01:00
|
|
|
notmuch-saved-searches '((:name "inbox" :query "tag:inbox" :key "i")
|
|
|
|
(:name "unread" :query "tag:unread AND tag:inbox" :key "u")
|
|
|
|
(:name "flagged" :query "tag:flagged" :key "f")
|
|
|
|
(:name "sent" :query "tag:sent" :key "t")
|
|
|
|
(:name "drafts" :query "tag:draft" :key "d")
|
|
|
|
(:name "all mail" :query "*" :key "a"))
|
2023-10-28 10:32:58 +01:00
|
|
|
notmuch-tagging-keys '(("a" notmuch-archive-tags "Archive")
|
|
|
|
("u" notmuch-show-mark-read-tags "Mark read")
|
|
|
|
("f" ("+flagged") "Flag")
|
|
|
|
("s" ("+spam" "-inbox") "Mark as spam")
|
|
|
|
("d" ("+deleted" "-inbox" "-unread") "Delete"))
|
2023-10-28 09:27:36 +01:00
|
|
|
notmuch-indicator-args '((:terms "tag:unread AND tag:inbox" :label " "))
|
2023-10-26 13:09:11 +01:00
|
|
|
notmuch-indicator-force-refresh-commands '(notmuch-refresh-this-buffer
|
|
|
|
notmuch-refresh-all-buffers
|
|
|
|
notmuch-poll-and-refresh-this-buffer))
|
2023-10-27 06:51:20 +01:00
|
|
|
|
|
|
|
(when (require 'notmuch nil :noerror)
|
|
|
|
(require 'notmuch-indicator)
|
2023-10-27 11:45:06 +01:00
|
|
|
(notmuch-indicator-mode +1)
|
|
|
|
(when (require 'hydra nil :noerror)
|
|
|
|
(defhydra email (global-map "C-c m")
|
|
|
|
"email"
|
|
|
|
("m" notmuch)
|
|
|
|
("c" notmuch-mua-new-mail)
|
2023-10-28 09:27:36 +01:00
|
|
|
("s" notmuch-search)
|
|
|
|
("i" (notmuch-search "is:inbox"))
|
|
|
|
("u" (notmuch-search "is:unread AND is:inbox")))))
|
2023-10-24 08:06:35 +01:00
|
|
|
|
|
|
|
(provide 'custom-email-config)
|