]> git.cworth.org Git - notmuch/blob - test/T453-emacs-reply.sh
emacs/show: display count of duplicates in headerline
[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_emacs '(notmuch-mua-new-reply "id:874llc2bkp.fsf@curie.anarc.at")
15         (test-visible-output "OUTPUT.raw")'
16 cat <<EOF > EXPECTED
17 From: Notmuch Test Suite <test_suite@notmuchmail.org>
18 To: Antoine Beaupré <anarcat@orangeseeds.org>
19 Subject: Re: bug: "no top level messages" crash on Zen email loops
20 In-Reply-To: <874llc2bkp.fsf@curie.anarc.at>
21 Fcc: MAIL_DIR/sent
22 --text follows this line--
23 Antoine Beaupré <anarcat@orangeseeds.org> writes:
24
25 > And obviously I forget the frigging attachment.
26 >
27 >
28 > PS: don't we have a "you forgot to actually attach the damn file" plugin
29 > when we detect the word "attachment" and there's no attach? :p
30 EOF
31 notmuch_dir_sanitize < OUTPUT.raw > OUTPUT
32 test_expect_equal_file EXPECTED OUTPUT
33
34 test_done