From 77eb76d9df314219c46c4ff17c7dc8cec5a05f13 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Tue, 26 Sep 2017 21:26:07 +0300 Subject: [PATCH] test: add emacs reply test for subjects with TAB Expect TABs to be sanitized from the subject line. Known broken. --- test/T310-emacs.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh index fde11790..2ef566ba 100755 --- a/test/T310-emacs.sh +++ b/test/T310-emacs.sh @@ -401,6 +401,29 @@ Notmuch Test Suite writes: 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) + (notmuch-search-show-thread) + (notmuch-test-wait) + (notmuch-show-reply-sender) + (test-output))' +sed -i -e 's/^In-Reply-To: <.*>$/In-Reply-To: /' OUTPUT +sed -i -e 's/^References: <.*>$/References: /' OUTPUT +sed -i -e '/^--text follows this line--$/q' OUTPUT +cat <EXPECTED +From: Notmuch Test Suite +To: Mikhail Gusarov +Subject: Re: [notmuch] [PATCH 1/2] Close message file after parsing message headers +In-Reply-To: +Fcc: ${MAIL_DIR}/sent +References: +--text follows this line-- +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Reply from alternate address within emacs" add_message '[from]="Sender "' \ [to]=test_suite_other@notmuchmail.org -- 2.26.2