unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Felix Geller <fgeller@gmail.com>
To: Jameson Graef Rollins <jrollins@finestructure.net>,
	notmuch@notmuchmail.org
Subject: Re: Decryption fails
Date: Thu, 02 Jun 2011 18:49:22 +0200	[thread overview]
Message-ID: <m2lixkdvql.fsf@gmail.com> (raw)
In-Reply-To: <8739jsjley.fsf@servo.factory.finestructure.net>


[-- Attachment #1.1: Type: text/plain, Size: 1106 bytes --]

On Thu, 02 Jun 2011 08:35:49 -0700, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
Non-text part: multipart/signed

> Hey, Felix.  Yeah, I unfortunately don't have any other suggestions
> other than asking the gmime folks.

Jeff replied and sent me a working patch :) Not sure yet how he prefers
to publish the patch, but the problem is fixed.
 
> Interestingly, I see the following message in your crypto test output:
> 
>   Error: search term did not match precisely one message.
> 
> which seems to indicate that the desired message wasn't actually
> delivered properly, contrary to what the emacs delivery tests are
> stating.  Not sure how that could be related, though, since it looks
> like the trace that you show above definitely looks like gmime caught in
> a poll loop.

Just ran the tests with a "fixed" poll function and it seems that many
problems remain. Don't have the time at the moment to take a closer
look, but I attached the output.

Anyway, I'm a glad decrypting user now ;)


Cheers,
Felix

> jamie.
Non-text part: application/pgp-signature

[-- Attachment #1.2: crypto.txt --]
[-- Type: text/plain, Size: 13143 bytes --]

crypto: Testing PGP/MIME signature verification and decryption
 PASS   emacs delivery of signed message
 FAIL   signature verification
	--- crypto.2.expected	2011-06-02 16:46:27.000000000 +0000
	+++ crypto.2.output	2011-06-02 16:46:27.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 <test_suite@notmuchmail.org>",
	- "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"}]}]},
	- []]]]
	+[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 946728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "headers": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",n "To": "test_suite@notmuchmail.org",n "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"id": 1,n "sigstatus": [{"status": "good",n "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381",n "created": 946728000}],n "content-type": "multipart/signed",n "content": [{"id": 2,n "content-type": "text/plain",n "content": "This is a test signed message.\n"},n {"id": 3,n "content-type": "application/pgp-signature"}]}]},n []]]]
 FAIL   signature verification with full owner trust
	--- crypto.3.expected	2011-06-02 16:46:27.000000000 +0000
	+++ crypto.3.output	2011-06-02 16:46:27.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 <test_suite@notmuchmail.org>",
	- "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 <test_suite@notmuchmail.org> (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"}]}]},
	- []]]]
	+[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 946728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "headers": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",n "To": "test_suite@notmuchmail.org",n "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"id": 1,n "sigstatus": [{"status": "good",n "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381",n "created": 946728000,n "userid": " Notmuch Test Suite <test_suite@notmuchmail.org> (INSECURE!)"}],n "content-type": "multipart/signed",n "content": [{"id": 2,n "content-type": "text/plain",n "content": "This is a test signed message.\n"},n {"id": 3,n "content-type": "application/pgp-signature"}]}]},n []]]]
 FAIL   signature verification with signer key unavailable
	--- crypto.4.expected	2011-06-02 16:46:28.000000000 +0000
	+++ crypto.4.output	2011-06-02 16:46:28.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 <test_suite@notmuchmail.org>",
	- "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"}]}]},
	- []]]]
	+[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 946728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "headers": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",n "To": "test_suite@notmuchmail.org",n "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"id": 1,n "sigstatus": [{"status": "error",n "keyid": "6D92612D94E46381",n "errors": 2}],n "content-type": "multipart/signed",n "content": [{"id": 2,n "content-type": "text/plain",n "content": "This is a test signed message.\n"},n {"id": 3,n "content-type": "application/pgp-signature"}]}]},n []]]]
 PASS   emacs delivery of encrypted message with attachment
 PASS   decryption, --format=text
 FAIL   decryption, --format=json
	--- crypto.7.expected	2011-06-02 16:46:29.000000000 +0000
	+++ crypto.7.output	2011-06-02 16:46:29.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 <test_suite@notmuchmail.org>",
	- "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"}]}]}]},
	- []]]]
	+[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 946728000,n "date_relative": "2000-01-01",n "tags": ["encrypted","inbox"],n "headers": {"Subject": "test encrypted message 001",n "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",n "To": "test_suite@notmuchmail.org",n "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"id": 1,n "encstatus": [{"status": "good"}],n "sigstatus": [],n "content-type": "multipart/encrypted",n "content": [{"id": 2,n "content-type": "application/pgp-encrypted"},n {"id": 3,n "content-type": "multipart/mixed",n "content": [{"id": 4,n "content-type": "text/plain",n "content": "This is a test encrypted message.\n"},n {"id": 5,n "content-type": "application/octet-stream",n "filename": "TESTATTACHMENT"}]}]}]},n []]]]
 FAIL   decryption, --format=json, --part=4
	--- crypto.8.expected	2011-06-02 16:46:29.000000000 +0000
	+++ crypto.8.output	2011-06-02 16:46:29.000000000 +0000
	@@ -1,3 +1 @@
	-{"id": 4,
	- "content-type": "text/plain",
	- "content": "This is a test encrypted message.\n"}
	+{"id": 4,n "content-type": "text/plain",n "content": "This is a test encrypted message.\n"}
 PASS   decrypt attachment (--part=5 --format=raw)
 FAIL   decryption failure with missing key
	--- crypto.10.expected	2011-06-02 16:46:30.000000000 +0000
	+++ crypto.10.output	2011-06-02 16:46:30.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 <test_suite@notmuchmail.org>",
	- "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"}]}]},
	- []]]]
	+[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 946728000,n "date_relative": "2000-01-01",n "tags": ["encrypted","inbox"],n "headers": {"Subject": "test encrypted message 001",n "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",n "To": "test_suite@notmuchmail.org",n "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"id": 1,n "encstatus": [{"status": "bad"}],n "content-type": "multipart/encrypted",n "content": [{"id": 2,n "content-type": "application/pgp-encrypted"},n {"id": 3,n "content-type": "application/octet-stream"}]}]},n []]]]
Failed to decrypt part: gpg: keyblock resource `/Users/fgeller/Devel/repos/notmuch/test/tmp.crypto/gnupg/secring.gpg': No such file or directory
gpg: keyblock resource `/Users/fgeller/Devel/repos/notmuch/test/tmp.crypto/gnupg/pubring.gpg': No such file or directory
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
gpg: armor header: 
gpg: public key is AD54AB16
gpg: encrypted with RSA key, ID AD54AB16
gpg: decryption failed: No secret key

 PASS   emacs delivery of encrypted + signed message
 FAIL   decryption + signature verification
	--- crypto.12.expected	2011-06-02 16:46:31.000000000 +0000
	+++ crypto.12.output	2011-06-02 16:46:31.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 <test_suite@notmuchmail.org>",
	- "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 <test_suite@notmuchmail.org> (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"}]}]},
	- []]]]
	+[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 946728000,n "date_relative": "2000-01-01",n "tags": ["encrypted","inbox"],n "headers": {"Subject": "test encrypted message 002",n "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",n "To": "test_suite@notmuchmail.org",n "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"id": 1,n "encstatus": [{"status": "good"}],n "sigstatus": [{"status": "good",n "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381",n "created": 946728000,n "userid": " Notmuch Test Suite <test_suite@notmuchmail.org> (INSECURE!)"}],n "content-type": "multipart/encrypted",n "content": [{"id": 2,n "content-type": "application/pgp-encrypted"},n {"id": 3,n "content-type": "text/plain",n "content": "This is another test encrypted message.\n"}]}]},n []]]]
 PASS   reply to encrypted message
 FAIL   signature verification with revoked key
	--- crypto.14.expected	2011-06-02 16:46:31.000000000 +0000
	+++ crypto.14.output	2011-06-02 16:46:31.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 <test_suite@notmuchmail.org>",
	- "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"}]}]},
	- []]]]
	+[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 946728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "headers": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",n "To": "test_suite@notmuchmail.org",n "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"id": 1,n "sigstatus": [{"status": "error",n "keyid": "6D92612D94E46381",n "errors": 8}],n "content-type": "multipart/signed",n "content": [{"id": 2,n "content-type": "text/plain",n "content": "This is a test signed message.\n"},n {"id": 3,n "content-type": "application/pgp-signature"}]}]},n []]]]
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

[-- Attachment #2: Type: application/pgp-signature, Size: 202 bytes --]

  reply	other threads:[~2011-06-02 16:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30 19:30 Decryption fails Felix Geller
2011-05-30 19:36 ` David Bremner
2011-05-31  7:18 ` Jameson Graef Rollins
2011-05-31 17:33   ` Felix Geller
2011-06-02 15:35     ` Jameson Graef Rollins
2011-06-02 16:49       ` Felix Geller [this message]
2011-06-02 17:18         ` Jameson Graef Rollins

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=m2lixkdvql.fsf@gmail.com \
    --to=fgeller@gmail.com \
    --cc=jrollins@finestructure.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).