diff options
| author | Jani Nikula <jani@nikula.org> | 2017-02-25 15:31:31 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-02-26 07:41:33 -0400 |
| commit | 14c60cf168ac3b0f277188c16e6012b7ebdadde7 (patch) | |
| tree | f52b91f406ffc3867e8b18e503fecbb04742f6e2 /test/T190-multipart.sh | |
| parent | 524372de10abafc79ccb4d71eae361cb0da0e6b9 (diff) | |
cli/show: list all filenames of a message in the formatted output
Instead of just having the first filename for the message, list all
duplicate filenames of the message as a list in the formatted
outputs. This bumps the format version to 3.
Diffstat (limited to 'test/T190-multipart.sh')
| -rwxr-xr-x | test/T190-multipart.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/T190-multipart.sh b/test/T190-multipart.sh index 35678909..18eb7b83 100755 --- a/test/T190-multipart.sh +++ b/test/T190-multipart.sh @@ -345,7 +345,7 @@ test_expect_success \ test_begin_subtest "--format=json --part=0, full message" notmuch show --format=json --part=0 'id:87liy5ap00.fsf@yoom.home.cworth.org' >OUTPUT cat <<EOF >EXPECTED -{"id": "87liy5ap00.fsf@yoom.home.cworth.org", "match": true, "excluded": false, "filename": "${MAIL_DIR}/multipart", "timestamp": 978709437, "date_relative": "2001-01-05", "tags": ["attachment","inbox","signed","unread"], "headers": {"Subject": "Multipart message", "From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Date": "Fri, 05 Jan 2001 15:43:57 +0000"}, "body": [ +{"id": "87liy5ap00.fsf@yoom.home.cworth.org", "match": true, "excluded": false, "filename": ["${MAIL_DIR}/multipart"], "timestamp": 978709437, "date_relative": "2001-01-05", "tags": ["attachment","inbox","signed","unread"], "headers": {"Subject": "Multipart message", "From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Date": "Fri, 05 Jan 2001 15:43:57 +0000"}, "body": [ {"id": 1, "content-type": "multipart/signed", "content": [ {"id": 2, "content-type": "multipart/mixed", "content": [ {"id": 3, "content-type": "message/rfc822", "content": [{"headers": {"Subject": "html message", "From": "Carl Worth <cworth@cworth.org>", "To": "cworth@cworth.org", "Date": "Fri, 05 Jan 2001 15:42:57 +0000"}, "body": [ @@ -627,7 +627,7 @@ notmuch_json_show_sanitize <<EOF >EXPECTED "original": {"id": "XXXXX", "match": false, "excluded": false, - "filename": "YYYYY", + "filename": ["YYYYY"], "timestamp": 978709437, "date_relative": "2001-01-05", "tags": ["attachment","inbox","signed","unread"], @@ -715,7 +715,7 @@ cat_expected_head () cat <<EOF [[[{"id": "htmlmessage", "match":true, "excluded": false, "date_relative":"2000-01-01", "timestamp": 946684800, - "filename": "${MAIL_DIR}/include-html", + "filename": ["${MAIL_DIR}/include-html"], "tags": ["inbox", "unread"], "headers": { "Date": "Sat, 01 Jan 2000 00:00:00 +0000", "From": "A <a@example.com>", "Subject": "html message", "To": "B <b@example.com>"}, |
