mu4e: support message-user-organization

Automatically include Organziation: if set and update when changing the context.

Fixes: issue #2112.
This commit is contained in:
Dirk-Jan C. Binnema
2021-11-07 12:46:15 +02:00
parent 90a748aba1
commit 67b16acbb2
4 changed files with 16 additions and 2 deletions

View File

@ -607,6 +607,8 @@ You can append flags."
(defun mu4e~draft-common-construct ()
"Construct the common headers for each message."
(concat
(when-let ((organization (message-make-organization)))
(mu4e~draft-header "Organization" organization))
(when mu4e-user-agent-string
(mu4e~draft-header "User-agent" mu4e-user-agent-string))
(mu4e~draft-header "Date" (message-make-date))))