mu4e-draft: Include a date in draft

Unconditionally include a date in draft messages; update it whenever
we're saving or sending.
This commit is contained in:
Dirk-Jan C. Binnema 2019-10-20 16:12:11 +03:00
parent 4cb3ca3585
commit 548dc16f67
1 changed files with 3 additions and 7 deletions

View File

@ -62,11 +62,8 @@ mu4e-specific version of `message-signature'."
:type 'boolean
:group 'mu4e-compose)
(defcustom mu4e-compose-auto-include-date nil
"Whether to include a date header.
If nil, only do so when sending the message."
:type 'boolean
:group 'mu4e-compose)
(make-obsolete-variable 'mu4e-compose-auto-include-date
"This is done unconditionally now" "1.3.5")
(defcustom mu4e-compose-in-new-frame nil
"Whether to compose messages in a new frame."
@ -404,8 +401,7 @@ You can append flags."
(concat
(when mu4e-user-agent-string
(mu4e~draft-header "User-agent" mu4e-user-agent-string))
(when mu4e-compose-auto-include-date
(mu4e~draft-header "Date" (message-make-date)))))
(mu4e~draft-header "Date" (message-make-date))))
(defconst mu4e~draft-reply-prefix "Re: "
"String to prefix replies with.")