diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-10-31 10:54:31 +1100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-11-24 09:11:42 -0400 |
| commit | 37e5bc00aeb9123dd88367b7506a19f74877dfe4 (patch) | |
| tree | 548f822d874c1693d94787420d0e9260a2af7748 /test | |
| parent | 7f726c6e87517eb9c84119a1c5e3a63bfaaa49f6 (diff) | |
cli: notmuch show support for --body=false with --format=text
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T190-multipart.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/T190-multipart.sh b/test/T190-multipart.sh index 3eeac1db..81c4d772 100755 --- a/test/T190-multipart.sh +++ b/test/T190-multipart.sh @@ -190,6 +190,21 @@ Non-text part: application/pgp-signature EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "--format=text --part=0 --body=false, message header" +notmuch show --format=text --part=0 --body=false 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT +cat <<EOF >EXPECTED +message{ id:87liy5ap00.fsf@yoom.home.cworth.org depth:0 match:1 excluded:0 filename:${MAIL_DIR}/multipart +header{ +Carl Worth <cworth@cworth.org> (2001-01-05) (attachment inbox signed unread) +Subject: Multipart message +From: Carl Worth <cworth@cworth.org> +To: cworth@cworth.org +Date: Fri, 05 Jan 2001 15:43:57 +0000 +header} +message} +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "--format=text --part=1, message body" notmuch show --format=text --part=1 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT cat <<EOF >EXPECTED |
