X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-mua.el;h=7a341ebf0588a3e91ee3666b119701be2ca91c8f;hb=f2a6790583825ffe3c564582f9a93a6c50d8430a;hp=b68cdf2625ffafc8956d4c415ce9bcf920a0359e;hpb=d820b97477f5705640aa8dcf9dcf311e37508def;p=notmuch diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index b68cdf26..7a341ebf 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -27,6 +27,7 @@ (require 'notmuch-lib) (require 'notmuch-address) +(require 'notmuch-draft) (eval-when-compile (require 'cl)) @@ -175,7 +176,7 @@ mutiple parts get a header." (unless (bolp) (insert "\n"))) (defun notmuch-mua-reply (query-string &optional sender reply-all) - (let ((args '("reply" "--format=sexp" "--format-version=1")) + (let ((args '("reply" "--format=sexp" "--format-version=4")) (process-crypto notmuch-show-process-crypto) reply original) @@ -217,7 +218,7 @@ mutiple parts get a header." else collect pair))) (notmuch-mua-mail (plist-get reply-headers :To) - (plist-get reply-headers :Subject) + (notmuch-sanitize (plist-get reply-headers :Subject)) (notmuch-headers-plist-to-alist reply-headers) nil (notmuch-mua-get-switch-function))))