mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
emacs: sanitize subject in replies
Commit a7964c86d1
("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.
This commit is contained in:
parent
77eb76d9df
commit
b2b65b4e6d
2 changed files with 1 additions and 2 deletions
|
@ -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))))
|
||||
|
||||
|
|
|
@ -402,7 +402,6 @@ EOF
|
|||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
test_begin_subtest "Reply within emacs to a message with TAB in subject"
|
||||
test_subtest_known_broken
|
||||
test_emacs '(let ((message-hidden-headers ''()))
|
||||
(notmuch-search "id:1258471718-6781-1-git-send-email-dottedmag@dottedmag.net")
|
||||
(notmuch-test-wait)
|
||||
|
|
Loading…
Reference in a new issue