diff options
| author | Bosché Aurélien <aurelien_bosche@yahoo.fr> | 2014-05-24 19:30:13 +0200 |
|---|---|---|
| committer | Bosché Aurélien <aurelien_bosche@yahoo.fr> | 2014-05-24 19:30:13 +0200 |
| commit | fdbc1d6f9a7f82f422809af2942264f9c6a061b4 (patch) | |
| tree | 2b2e53de97f9ba2bd538dd2e6fd6d78d93b6ab6b /mu4e | |
| parent | c426bc16211c1522d6351cfb73c6b61c1c96b57a (diff) | |
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.
Diffstat (limited to 'mu4e')
| -rw-r--r-- | mu4e/mu4e-draft.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mu4e/mu4e-draft.el b/mu4e/mu4e-draft.el index 0b622be..9e17d05 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.") |
