From fdbc1d6f9a7f82f422809af2942264f9c6a061b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bosch=C3=A9=20Aur=C3=A9lien?= Date: Sat, 24 May 2014 19:30:13 +0200 Subject: [PATCH] Automatically insert a date field in the new drafts headers. So that one can see when a draft was composed when browsing the draft maildir (instead of getting "None" in the Date column). Then one can sort the drafts by date. --- mu4e/mu4e-draft.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-draft.el b/mu4e/mu4e-draft.el index 0b622beb..9e17d05f 100644 --- a/mu4e/mu4e-draft.el +++ b/mu4e/mu4e-draft.el @@ -303,7 +303,9 @@ You can append flags." (defun mu4e~draft-common-construct () "Construct the common headers for each message." - (mu4e~draft-header "User-agent" (mu4e~draft-user-agent-construct))) + (mu4e~draft-header "User-agent" (mu4e~draft-user-agent-construct)) + (mu4e~draft-header "Date" (message-make-date))) + (defconst mu4e~draft-reply-prefix "Re: " "String to prefix replies with.")