blob a613fe3eba8ee8826f814bd83757bf88056a2d5c 1063 bytes (raw)
name: test/T351-pgpmime-mangling.sh # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| | #!/usr/bin/env bash
test_description='PGP/MIME message mangling'
. $(dirname "$0")/test-lib.sh || exit 1
add_gnupg_home
add_email_corpus mangling
test_begin_subtest "handle 'Mixed-Up' mangled PGP/MIME message"
output=$(notmuch show --format=json --decrypt=true id:mixed-up@mangling.notmuchmail.org)
test_json_nodes <<<"$output" \
'body:[0][0][0]["body"][0]["content"][1]["content"]="The password is \"abcd1234!\", please do not tell anyone.\n"'
test_begin_subtest "repaired 'Mixed-up' messages can be found with index.repaired=mixedup"
output=$(notmuch search --output=messages property:index.repaired=mixedup)
test_expect_equal "$output" id:mixed-up@mangling.notmuchmail.org
test_begin_subtest "reindex 'Mixed-Up' mangled PGP/MIME message"
test_expect_success 'notmuch reindex --decrypt=true id:mixed-up@mangling.notmuchmail.org'
test_begin_subtest "search cleartext of 'Mixed-Up' mangled PGP/MIME message"
output=$(notmuch search --output=messages body:password)
test_expect_equal "$output" id:mixed-up@mangling.notmuchmail.org
test_done
|
debug log:
solving a613fe3e ...
found a613fe3e in https://yhetil.org/notmuch/20190528225452.17550-5-dkg@fifthhorseman.net/
found a20066e4 in https://yhetil.org/notmuch/20190528225452.17550-4-dkg@fifthhorseman.net/
found 17f94a31 in https://yhetil.org/notmuch/20190528225452.17550-2-dkg@fifthhorseman.net/
applying [1/3] https://yhetil.org/notmuch/20190528225452.17550-2-dkg@fifthhorseman.net/
diff --git a/test/T351-pgpmime-mangling.sh b/test/T351-pgpmime-mangling.sh
new file mode 100755
index 00000000..17f94a31
applying [2/3] https://yhetil.org/notmuch/20190528225452.17550-4-dkg@fifthhorseman.net/
diff --git a/test/T351-pgpmime-mangling.sh b/test/T351-pgpmime-mangling.sh
index 17f94a31..a20066e4 100755
applying [3/3] https://yhetil.org/notmuch/20190528225452.17550-5-dkg@fifthhorseman.net/
diff --git a/test/T351-pgpmime-mangling.sh b/test/T351-pgpmime-mangling.sh
index a20066e4..a613fe3e 100755
Checking patch test/T351-pgpmime-mangling.sh...
Applied patch test/T351-pgpmime-mangling.sh cleanly.
Checking patch test/T351-pgpmime-mangling.sh...
Applied patch test/T351-pgpmime-mangling.sh cleanly.
Checking patch test/T351-pgpmime-mangling.sh...
Applied patch test/T351-pgpmime-mangling.sh cleanly.
index at:
100755 a613fe3eba8ee8826f814bd83757bf88056a2d5c test/T351-pgpmime-mangling.sh
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
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).