diff options
| author | David Bremner <david@tethera.net> | 2015-10-06 07:20:46 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-11-19 07:46:03 -0400 |
| commit | c1c955786ae1a828f09fd49d7b996dce624ee682 (patch) | |
| tree | dacd70a3436c8f07a60dc3fbd417b862206284df /test/T190-multipart.sh | |
| parent | e870d73dc8830fbfc4c79b02c839ced0d42f73a5 (diff) | |
tests: add test for case insensitive Content-Disposition
This is broken now, but will be fixed in the next commit
Diffstat (limited to 'test/T190-multipart.sh')
| -rwxr-xr-x | test/T190-multipart.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/test/T190-multipart.sh b/test/T190-multipart.sh index 7c4c9f71..1caf6831 100755 --- a/test/T190-multipart.sh +++ b/test/T190-multipart.sh @@ -763,4 +763,57 @@ test_begin_subtest "indexes mime-type #3" output=$(notmuch search from:todd and mimetype:multipart/alternative | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2014-01-12 [1/1] Todd; odd content types (inbox unread)" +test_begin_subtest "case of Content-Disposition doesn't matter for indexing" +test_subtest_known_broken +cat <<EOF > ${MAIL_DIR}/content-disposition +Return-path: <david@tethera.net> +Envelope-to: david@tethera.net +Delivery-date: Sun, 04 Oct 2015 09:16:03 -0300 +Received: from gitolite.debian.net ([87.98.215.224]) + by yantan.tethera.net with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) + (Exim 4.80) + (envelope-from <david@tethera.net>) + id 1ZiiCx-0007iz-RK + for david@tethera.net; Sun, 04 Oct 2015 09:16:03 -0300 +Received: from remotemail by gitolite.debian.net with local (Exim 4.80) + (envelope-from <david@tethera.net>) + id 1ZiiC8-0002Rz-Uf; Sun, 04 Oct 2015 12:15:12 +0000 +Received: (nullmailer pid 28621 invoked by uid 1000); Sun, 04 Oct 2015 + 12:14:53 -0000 +From: David Bremner <david@tethera.net> +To: David Bremner <david@tethera.net> +Subject: test attachment +User-Agent: Notmuch/0.20.2+93~g33c8777 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Sun, 04 Oct 2015 09:14:53 -0300 +Message-ID: <87io6m96f6.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="=-=-=" + +--=-=-= +Content-Type: text/plain +Content-Disposition: ATTACHMENT; filename=hello.txt +Content-Description: this is a very exciting file + +hello + +--=-=-= +Content-Type: text/plain + + +world + +--=-=-=-- + +EOF +NOTMUCH_NEW + +cat <<EOF > EXPECTED +attachment +inbox +unread +EOF + +notmuch search --output=tags id:87io6m96f6.fsf@zancas.localnet > OUTPUT +test_expect_equal_file EXPECTED OUTPUT test_done |
