From: Jani Nikula <jani@nikula.org>
To: notmuch@notmuchmail.org
Cc: jani@nikula.org, Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Subject: [PATCH 2/4] test: signed and encrypted part content type indexing
Date: Sat, 16 Sep 2017 17:59:03 +0300 [thread overview]
Message-ID: <34f58dfa44a8c315453cbed4d0ac56fc2a60a263.1505573582.git.jani@nikula.org> (raw)
In-Reply-To: <cover.1505573582.git.jani@nikula.org>
In-Reply-To: <cover.1505573582.git.jani@nikula.org>
Add known broken subtests for searching signed and encrypted messages
using mimetype: prefix search for the content-types of signed and
encrypted parts.
---
test/T350-crypto.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/test/T350-crypto.sh b/test/T350-crypto.sh
index 1d408af71dd7..2f1f9ce4913c 100755
--- a/test/T350-crypto.sh
+++ b/test/T350-crypto.sh
@@ -37,6 +37,11 @@ test_expect_success \
"This is a test signed message." \
"(mml-secure-message-sign)"'
+test_begin_subtest "signed part content-type indexing"
+test_subtest_known_broken
+output=$(notmuch search mimetype:multipart/signed and mimetype:application/pgp-signature | notmuch_search_sanitize)
+test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; test signed message 001 (inbox signed)"
+
test_begin_subtest "signature verification"
output=$(notmuch show --format=json --verify subject:"test signed message 001" \
| notmuch_json_show_sanitize \
@@ -231,6 +236,11 @@ test_expect_success \
"This is a test encrypted message.\n" \
"(mml-attach-file \"TESTATTACHMENT\") (mml-secure-message-encrypt)"'
+test_begin_subtest "encrypted part content-type indexing"
+test_subtest_known_broken
+output=$(notmuch search mimetype:multipart/encrypted and mimetype:application/pgp-encrypted and mimetype:application/octet-stream | notmuch_search_sanitize)
+test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; test encrypted message 001 (encrypted inbox)"
+
test_begin_subtest "decryption, --format=text"
output=$(notmuch show --format=text --decrypt subject:"test encrypted message 001" \
| notmuch_show_sanitize_all \
--
2.11.0
next prev parent reply other threads:[~2017-09-16 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-16 14:59 [PATCH 0/4] lib: signed and encrypted part content-type indexing Jani Nikula
2017-09-16 14:59 ` [PATCH 1/4] lib: abstract content type indexing Jani Nikula
2017-09-16 14:59 ` Jani Nikula [this message]
2017-09-16 14:59 ` [PATCH 3/4] lib: index the content type of signature parts Jani Nikula
2017-09-16 14:59 ` [PATCH 4/4] lib: index the content-type of the parts of encrypted messages Jani Nikula
2017-09-17 20:27 ` Daniel Kahn Gillmor
2017-09-18 0:02 ` [PATCH 0/4] lib: signed and encrypted part content-type indexing David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=34f58dfa44a8c315453cbed4d0ac56fc2a60a263.1505573582.git.jani@nikula.org \
--to=jani@nikula.org \
--cc=dkg@fifthhorseman.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).