crypto: Testing PGP/MIME signature verification and decryption PASS emacs delivery of signed message FAIL signature verification --- crypto.2.expected 2011-05-31 17:30:47.000000000 +0000 +++ crypto.2.output 2011-05-31 17:30:47.000000000 +0000 @@ -1,23 +1 @@ -[[[{"id": "XXXXX", - "match": true, - "filename": "YYYYY", - "timestamp": 946728000, - "date_relative": "2000-01-01", - "tags": ["inbox","signed"], - "headers": {"Subject": "test signed message 001", - "From": "Notmuch Test Suite ", - "To": "test_suite@notmuchmail.org", - "Cc": "", - "Bcc": "", - "Date": "01 Jan 2000 12:00:00 -0000"}, - "body": [{"id": 1, - "sigstatus": [{"status": "good", - "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381", - "created": 946728000}], - "content-type": "multipart/signed", - "content": [{"id": 2, - "content-type": "text/plain", - "content": "This is a test signed message.\n"}, - {"id": 3, - "content-type": "application/pgp-signature"}]}]}, - []]]] +[] FAIL signature verification with full owner trust --- crypto.3.expected 2011-05-31 17:30:47.000000000 +0000 +++ crypto.3.output 2011-05-31 17:30:47.000000000 +0000 @@ -1,24 +1 @@ -[[[{"id": "XXXXX", - "match": true, - "filename": "YYYYY", - "timestamp": 946728000, - "date_relative": "2000-01-01", - "tags": ["inbox","signed"], - "headers": {"Subject": "test signed message 001", - "From": "Notmuch Test Suite ", - "To": "test_suite@notmuchmail.org", - "Cc": "", - "Bcc": "", - "Date": "01 Jan 2000 12:00:00 -0000"}, - "body": [{"id": 1, - "sigstatus": [{"status": "good", - "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381", - "created": 946728000, - "userid": " Notmuch Test Suite (INSECURE!)"}], - "content-type": "multipart/signed", - "content": [{"id": 2, - "content-type": "text/plain", - "content": "This is a test signed message.\n"}, - {"id": 3, - "content-type": "application/pgp-signature"}]}]}, - []]]] +[] FAIL signature verification with signer key unavailable --- crypto.4.expected 2011-05-31 17:30:47.000000000 +0000 +++ crypto.4.output 2011-05-31 17:30:47.000000000 +0000 @@ -1,23 +1 @@ -[[[{"id": "XXXXX", - "match": true, - "filename": "YYYYY", - "timestamp": 946728000, - "date_relative": "2000-01-01", - "tags": ["inbox","signed"], - "headers": {"Subject": "test signed message 001", - "From": "Notmuch Test Suite ", - "To": "test_suite@notmuchmail.org", - "Cc": "", - "Bcc": "", - "Date": "01 Jan 2000 12:00:00 -0000"}, - "body": [{"id": 1, - "sigstatus": [{"status": "error", - "keyid": "6D92612D94E46381", - "errors": 2}], - "content-type": "multipart/signed", - "content": [{"id": 2, - "content-type": "text/plain", - "content": "This is a test signed message.\n"}, - {"id": 3, - "content-type": "application/pgp-signature"}]}]}, - []]]] +[] PASS emacs delivery of encrypted message with attachment FAIL decryption, --format=text --- crypto.6.expected 2011-05-31 17:30:48.000000000 +0000 +++ crypto.6.output 2011-05-31 17:30:48.000000000 +0000 @@ -1,25 +1 @@ - message{ id:XXXXX depth:0 match:1 filename:XXXXX - header{ -Notmuch Test Suite (2000-01-01) (encrypted inbox) -Subject: test encrypted message 001 -From: Notmuch Test Suite -To: test_suite@notmuchmail.org -Date: 01 Jan 2000 12:00:00 -0000 - header} - body{ - part{ ID: 1, Content-type: multipart/encrypted - part{ ID: 2, Content-type: application/pgp-encrypted -Non-text part: application/pgp-encrypted - part} - part{ ID: 3, Content-type: multipart/mixed - part{ ID: 4, Content-type: text/plain -This is a test encrypted message. - part} - attachment{ ID: 5, Content-type: application/octet-stream -Attachment: TESTATTACHMENT (application/octet-stream) -Non-text part: application/octet-stream - attachment} - part} - part} - body} - message} + FAIL decryption, --format=json --- crypto.7.expected 2011-05-31 17:30:48.000000000 +0000 +++ crypto.7.output 2011-05-31 17:30:48.000000000 +0000 @@ -1,27 +1 @@ -[[[{"id": "XXXXX", - "match": true, - "filename": "YYYYY", - "timestamp": 946728000, - "date_relative": "2000-01-01", - "tags": ["encrypted","inbox"], - "headers": {"Subject": "test encrypted message 001", - "From": "Notmuch Test Suite ", - "To": "test_suite@notmuchmail.org", - "Cc": "", - "Bcc": "", - "Date": "01 Jan 2000 12:00:00 -0000"}, - "body": [{"id": 1, - "encstatus": [{"status": "good"}], - "sigstatus": [], - "content-type": "multipart/encrypted", - "content": [{"id": 2, - "content-type": "application/pgp-encrypted"}, - {"id": 3, - "content-type": "multipart/mixed", - "content": [{"id": 4, - "content-type": "text/plain", - "content": "This is a test encrypted message.\n"}, - {"id": 5, - "content-type": "application/octet-stream", - "filename": "TESTATTACHMENT"}]}]}]}, - []]]] +[] FAIL decryption, --format=json, --part=4 --- crypto.8.expected 2011-05-31 17:30:48.000000000 +0000 +++ crypto.8.output 2011-05-31 17:30:48.000000000 +0000 @@ -1,3 +1 @@ -{"id": 4, - "content-type": "text/plain", - "content": "This is a test encrypted message.\n"} + Error: search term did not match precisely one message. FAIL decrypt attachment (--part=5 --format=raw) --- crypto.9.expected 2011-05-31 17:30:47.000000000 +0000 +++ crypto.9.output 2011-05-31 17:30:48.000000000 +0000 @@ -1 +0,0 @@ -This is a test file. Error: search term did not match precisely one message. FAIL decryption failure with missing key --- crypto.10.expected 2011-05-31 17:30:49.000000000 +0000 +++ crypto.10.output 2011-05-31 17:30:49.000000000 +0000 @@ -1,20 +1 @@ -[[[{"id": "XXXXX", - "match": true, - "filename": "YYYYY", - "timestamp": 946728000, - "date_relative": "2000-01-01", - "tags": ["encrypted","inbox"], - "headers": {"Subject": "test encrypted message 001", - "From": "Notmuch Test Suite ", - "To": "test_suite@notmuchmail.org", - "Cc": "", - "Bcc": "", - "Date": "01 Jan 2000 12:00:00 -0000"}, - "body": [{"id": 1, - "encstatus": [{"status": "bad"}], - "content-type": "multipart/encrypted", - "content": [{"id": 2, - "content-type": "application/pgp-encrypted"}, - {"id": 3, - "content-type": "application/octet-stream"}]}]}, - []]]] +[] PASS emacs delivery of encrypted + signed message FAIL decryption + signature verification --- crypto.12.expected 2011-05-31 17:30:50.000000000 +0000 +++ crypto.12.output 2011-05-31 17:30:50.000000000 +0000 @@ -1,25 +1 @@ -[[[{"id": "XXXXX", - "match": true, - "filename": "YYYYY", - "timestamp": 946728000, - "date_relative": "2000-01-01", - "tags": ["encrypted","inbox"], - "headers": {"Subject": "test encrypted message 002", - "From": "Notmuch Test Suite ", - "To": "test_suite@notmuchmail.org", - "Cc": "", - "Bcc": "", - "Date": "01 Jan 2000 12:00:00 -0000"}, - "body": [{"id": 1, - "encstatus": [{"status": "good"}], - "sigstatus": [{"status": "good", - "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381", - "created": 946728000, - "userid": " Notmuch Test Suite (INSECURE!)"}], - "content-type": "multipart/encrypted", - "content": [{"id": 2, - "content-type": "application/pgp-encrypted"}, - {"id": 3, - "content-type": "text/plain", - "content": "This is another test encrypted message.\n"}]}]}, - []]]] +[] FAIL reply to encrypted message --- crypto.13.expected 2011-05-31 17:30:50.000000000 +0000 +++ crypto.13.output 2011-05-31 17:30:50.000000000 +0000 @@ -1,7 +1 @@ -From: Notmuch Test Suite -Subject: Re: test encrypted message 002 -On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite wrote: -Non-text part: multipart/encrypted -Non-text part: application/pgp-encrypted -> This is another test encrypted message. FAIL signature verification with revoked key --- crypto.14.expected 2011-05-31 17:30:50.000000000 +0000 +++ crypto.14.output 2011-05-31 17:30:50.000000000 +0000 @@ -1,23 +1 @@ -[[[{"id": "XXXXX", - "match": true, - "filename": "YYYYY", - "timestamp": 946728000, - "date_relative": "2000-01-01", - "tags": ["inbox","signed"], - "headers": {"Subject": "test signed message 001", - "From": "Notmuch Test Suite ", - "To": "test_suite@notmuchmail.org", - "Cc": "", - "Bcc": "", - "Date": "01 Jan 2000 12:00:00 -0000"}, - "body": [{"id": 1, - "sigstatus": [{"status": "error", - "keyid": "6D92612D94E46381", - "errors": 8}], - "content-type": "multipart/signed", - "content": [{"id": 2, - "content-type": "text/plain", - "content": "This is a test signed message.\n"}, - {"id": 3, - "content-type": "application/pgp-signature"}]}]}, - []]]] +[] gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u