2023-10-29 07:00:48 +00:00
|
|
|
(setq sendmail-program (executable-find "msmtp")
|
2023-10-27 08:03:51 +01:00
|
|
|
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
|
2023-11-01 08:37:30 +00:00
|
|
|
message-kill-buffer-on-exit t
|
|
|
|
mail-user-agent 'mu4e-user-agent
|
|
|
|
read-mail-command 'mu4e
|
|
|
|
mu4e-maildir "~/Mail"
|
|
|
|
mu4e-attachment-dir "~/Downloads"
|
|
|
|
mu4e-get-mail-command "mbsync -a"
|
|
|
|
mu4e-update-interval (* 5 60) ; Every 5 minutes
|
|
|
|
mu4e-sent-messages-behavior 'sent
|
|
|
|
mu4e-change-filenames-when-moving t
|
|
|
|
mu4e-context-policy 'pick-first
|
2023-11-01 18:05:45 +00:00
|
|
|
mu4e-use-fancy-chars t
|
2023-11-01 08:37:30 +00:00
|
|
|
mu4e-headers-thread-single-orphan-prefix '("─>" . "─▶")
|
2023-11-01 18:05:45 +00:00
|
|
|
mu4e-headers-thread-orphan-prefix '("┬>" . "┬▶")
|
2023-11-01 08:37:30 +00:00
|
|
|
mu4e-headers-thread-connection-prefix '("│ " . "│ ")
|
|
|
|
mu4e-headers-thread-first-child-prefix '("├>" . "├▶")
|
|
|
|
mu4e-headers-thread-child-prefix '("├>" . "├▶")
|
|
|
|
mu4e-headers-thread-last-child-prefix '("└>" . "╰▶")
|
|
|
|
mu4e-modeline-all-read '("R:" . " ")
|
|
|
|
mu4e-modeline-all-clear '("C:" . " ")
|
|
|
|
mu4e-modeline-new-items '("N:" . " ")
|
2023-11-01 18:05:45 +00:00
|
|
|
mu4e-modeline-unread-items '("U:" . " ")
|
2023-11-01 08:37:30 +00:00
|
|
|
mu4e-search-full-label '("F" . " ")
|
|
|
|
mu4e-search-hide-label '("H" . " ")
|
|
|
|
mu4e-search-related-label '("R" . " ")
|
|
|
|
mu4e-search-skip-duplicates-label '("D" . " ")
|
|
|
|
mu4e-search-threaded-label'("T" . " ")
|
|
|
|
mu4e-alert-modeline-formatter 'mu4e-alert-default-mode-line-formatter
|
|
|
|
mu4e-headers-fields '((:human-date . 12)
|
|
|
|
(:flags . 6)
|
|
|
|
(:from-or-to . 25)
|
|
|
|
(:subject))
|
2023-11-03 16:02:24 +00:00
|
|
|
mu4e-headers-actions '(("org capture message" . mu4e-org-store-and-capture)
|
|
|
|
("capture message" . mu4e-action-capture-message)
|
|
|
|
("show this thread" . mu4e-action-show-thread))
|
2023-11-01 08:37:30 +00:00
|
|
|
mu4e-maildir-shortcuts '((:maildir "/Proton/Inbox/" :key ?p)
|
|
|
|
(:maildir "/iCloud/Inbox/" :key ?i)
|
2023-11-03 07:15:55 +00:00
|
|
|
(:maildir "/Outlook/Inbox/" :key ?w)))
|
2023-10-27 06:51:20 +01:00
|
|
|
|
2023-10-31 07:59:37 +00:00
|
|
|
(when (require 'mu4e nil :noerror)
|
2023-11-04 12:23:46 +00:00
|
|
|
(keymap-global-set "C-c m m" #'mu4e)
|
|
|
|
(keymap-global-set "C-c m u" #'mu4e-update-index)
|
|
|
|
(keymap-global-set "C-c m c" #'mu4e-compose-new)
|
2023-10-31 07:59:37 +00:00
|
|
|
|
|
|
|
(when (require 'mu4e-alert nil :noerror)
|
|
|
|
(mu4e-alert-set-default-style 'libnotify)
|
|
|
|
(mu4e-alert-enable-notifications)
|
|
|
|
(mu4e-alert-enable-mode-line-display))
|
2023-11-01 08:37:30 +00:00
|
|
|
|
|
|
|
(setq mu4e-contexts (list
|
2023-11-03 07:15:55 +00:00
|
|
|
(make-mu4e-context
|
|
|
|
:name "Xenia"
|
|
|
|
:vars '((user-mail-address . "evie@xenia.me.uk")
|
|
|
|
(mu4e-sent-folder . "/Proton/Sent")
|
|
|
|
(mu4e-drafts-folder . "/Proton/Drafts")
|
|
|
|
(mu4e-trash-folder . "/Proton/Trash")
|
|
|
|
(mu4e-refile-folder . "/Proton/Archive")))
|
2023-10-31 07:12:55 +00:00
|
|
|
(make-mu4e-context
|
|
|
|
:name "Proton"
|
2023-10-31 07:59:37 +00:00
|
|
|
:match-func (lambda (msg) (when msg (string-prefix-p "/Proton" (mu4e-message-field msg :maildir))))
|
|
|
|
:vars '((user-mail-address . "e.litherlandsmith@proton.me")
|
|
|
|
(mu4e-sent-folder . "/Proton/Sent")
|
|
|
|
(mu4e-drafts-folder . "/Proton/Drafts")
|
|
|
|
(mu4e-trash-folder . "/Proton/Trash")
|
|
|
|
(mu4e-refile-folder . "/Proton/Archive")))
|
2023-10-31 07:12:55 +00:00
|
|
|
(make-mu4e-context
|
|
|
|
:name "iCloud"
|
2023-10-31 07:59:37 +00:00
|
|
|
:match-func (lambda (msg) (when msg (string-prefix-p "/iCloud" (mu4e-message-field msg :maildir))))
|
|
|
|
:vars '((user-mail-address . "e.litherlandsmith@icloud.com")
|
2023-11-01 18:05:45 +00:00
|
|
|
(mu4e-sent-folder . "/iCloud/Sent Messages")
|
2023-10-31 07:59:37 +00:00
|
|
|
(mu4e-drafts-folder . "/iCloud/Drafts")
|
2023-11-01 18:05:45 +00:00
|
|
|
(mu4e-trash-folder . "/iCloud/Deleted Messages")
|
2023-10-31 07:59:37 +00:00
|
|
|
(mu4e-refile-folder . "/iCloud/Archive")))
|
2023-10-31 07:12:55 +00:00
|
|
|
(make-mu4e-context
|
2023-11-03 07:15:55 +00:00
|
|
|
:name "Work"
|
2023-10-31 07:59:37 +00:00
|
|
|
:match-func (lambda (msg) (when msg (string-prefix-p "/Outlook" (mu4e-message-field msg :maildir))))
|
|
|
|
:vars '((user-mail-address . "evie.litherland-smith@ukaea.uk")
|
|
|
|
(mu4e-sent-folder . "/Outlook/Sent")
|
|
|
|
(mu4e-drafts-folder . "/Outlook/Drafts")
|
|
|
|
(mu4e-trash-folder . "/Outlook/Trash")
|
|
|
|
(mu4e-refile-folder . "/Outlook/Archive"))))))
|
2023-10-24 08:06:35 +01:00
|
|
|
|
|
|
|
(provide 'custom-email-config)
|