aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-09-26 21:26:08 +0300
committerDavid Bremner <david@tethera.net>2017-09-27 08:15:02 -0300
commitb2b65b4e6ded8e59e9de2e4d34620b2e8d8c9c53 (patch)
treed7f5ecfa4c50720eed79dfd9216f618f8ec5292d /emacs
parent77eb76d9df314219c46c4ff17c7dc8cec5a05f13 (diff)
emacs: sanitize subject in replies
Commit a7964c86d125 ("emacs: Sanitize authors and subjects in search and show") added sanitization of header information for display. Do the same for reply subjects. This fixes the long-standing annoying artefact of certain versions of mailman using tab as folding whitespace, leading to tabs in reply subjects.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/notmuch-mua.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
index fd64b362..7a341ebf 100644
--- a/emacs/notmuch-mua.el
+++ b/emacs/notmuch-mua.el
@@ -218,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))))