]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-mua.el
emacs: fix MML quoting in replies
[notmuch] / emacs / notmuch-mua.el
index 023645e33edf1211e9f34a6fd883bb8d23caa6c6..13244eb893f60ceceafc9953d9ac697b229ec702 100644 (file)
@@ -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