Set context-aware "from" address (mu4e)
The user can configure a list of addresses that are associated with a context by passing a list to set-email-account!, e.g. (set-email-account! "foo" ... (+mu4e-personal-addresses ("foo@bar.org" "bar@baz.org"))) This list, if it exists, is used to prompt the user for the "from" address after trying to set the "from" address automatically.
This commit is contained in:
parent
522c1ca33b
commit
a8d7d61e44
2 changed files with 16 additions and 7 deletions
|
@ -3,6 +3,9 @@
|
|||
(defvar +mu4e-backend 'mbsync
|
||||
"Which backend to use. Can either be offlineimap, mbsync or nil (manual).")
|
||||
|
||||
(defvar +mu4e-personal-adresses 'nil
|
||||
"Alternative to mu4e-personal-adresses that can be set for each account (mu4e context).")
|
||||
|
||||
|
||||
;;
|
||||
;;; Packages
|
||||
|
@ -188,7 +191,7 @@
|
|||
:v "u" #'mu4e-headers-mark-for-unmark
|
||||
:vn "l" #'+mu4e-msg-to-agenda))
|
||||
|
||||
(add-hook 'mu4e-compose-pre-hook '+mu4e-set-account)
|
||||
(add-hook 'mu4e-compose-pre-hook '+mu4e-set-from-address)
|
||||
|
||||
(advice-add #'mu4e~main-action-str :override #'+mu4e~main-action-str-prettier)
|
||||
(when (featurep! :editor evil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue