]> git.cworth.org Git - notmuch/blob - test/T453-emacs-reply.sh
test: add known broken test for inlining in emacs/reply
[notmuch] / test / T453-emacs-reply.sh
1 #!/usr/bin/env bash
2
3 test_description="emacs reply"
4 . $(dirname "$0")/test-lib.sh || exit 1
5 . $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
6
7 EXPECTED=$NOTMUCH_SRCDIR/test/emacs-show.expected-output
8
9 test_require_emacs
10
11 add_email_corpus attachment
12
13 test_begin_subtest "tar not inlined by default"
14 test_subtest_known_broken
15 test_emacs '(notmuch-mua-new-reply "id:874llc2bkp.fsf@curie.anarc.at")
16         (test-visible-output "OUTPUT.raw")'
17 cat <<EOF > EXPECTED
18 From: Notmuch Test Suite <test_suite@notmuchmail.org>
19 To: Antoine Beaupré <anarcat@orangeseeds.org>
20 Subject: Re: bug: "no top level messages" crash on Zen email loops
21 In-Reply-To: <874llc2bkp.fsf@curie.anarc.at>
22 Fcc: MAIL_DIR/sent
23 --text follows this line--
24 Antoine Beaupré <anarcat@orangeseeds.org> writes:
25
26 > And obviously I forget the frigging attachment.
27 >
28 >
29 > PS: don't we have a "you forgot to actually attach the damn file" plugin
30 > when we detect the word "attachment" and there's no attach? :p
31 EOF
32 notmuch_dir_sanitize < OUTPUT.raw > OUTPUT
33 test_expect_equal_file EXPECTED OUTPUT
34
35 test_done