aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-03-10 21:46:26 -0400
committerGravatar David Bremner <bremner@debian.org>2012-03-10 21:46:26 -0400
commitc46764030d8d773d9d016b05fb274d5d12bb0907 (patch)
tree43b7ce808d301ac60c78617fcd66e84727cf4031 /emacs
parent4a0740920d2a92d6a7d71ec7b8fc50e441e7552d (diff)
parent4d136995cebb3a339faf844fa3106f398562aad7 (diff)
Merge branch 'release'
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-mua.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index 4be7c13d..13244eb8 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -95,6 +95,9 @@ list."
(goto-char (point-min))
(setq headers (mail-header-extract)))))
(forward-line 1)
+ ;; Original message may contain (malicious) MML tags. We must
+ ;; properly quote them in the reply.
+ (mml-quote-region (point) (point-max))
(setq body (buffer-substring (point) (point-max))))
;; If sender is non-nil, set the From: header to its value.
(when sender
@@ -116,12 +119,7 @@ list."
(push-mark))
(set-buffer-modified-p nil)
- (message-goto-body)
- ;; Original message may contain (malicious) MML tags. We must
- ;; properly quote them in the reply. Note that using `point-max'
- ;; instead of `mark' here is wrong. The buffer may include user's
- ;; signature which should not be MML-quoted.
- (mml-quote-region (point) (mark)))
+ (message-goto-body))
(defun notmuch-mua-forward-message ()
(message-forward)