From e3274461dbb80e20acf226c5df4efba1c8a9ce82 Mon Sep 17 00:00:00 2001 From: djcb Date: Sun, 9 Mar 2014 20:08:55 +0200 Subject: [PATCH] * mu4e: applied Michael Strey's patch for the date in citations What was going wrong? Using the function `mu4e-view-message-text', mu4e~draft-cite-original created a temporary buffer. Based on this buffer the function message-cite-original-without-signature, borrowed from Gnus, had to extract the date for the citation line. The problem was, that this function depends on a standardized date in ISO format whilst mu4e-view-message-text formatted the date according to the setting of mu4e-view-date-format. This patch hopefully solves this problem by setting mu4e-view-date-format in function mu4e~draft-cite-original. --- mu4e/mu4e-draft.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-draft.el b/mu4e/mu4e-draft.el index 4163f895..051777a8 100644 --- a/mu4e/mu4e-draft.el +++ b/mu4e/mu4e-draft.el @@ -79,7 +79,8 @@ This function uses gnus' `mu4e-compose-cite-function', and as such all its settings apply." (with-temp-buffer (when (fboundp 'mu4e-view-message-text) ;; keep bytecompiler happy - (insert (mu4e-view-message-text msg)) + (let ((mu4e-view-date-format "%Y-%m-%dT%T%z")) + (insert (mu4e-view-message-text msg))) (message-yank-original) (goto-char (point-min)) (push-mark (point-max))