* Decryption fails
@ 2011-05-30 19:30 Felix Geller
2011-05-30 19:36 ` David Bremner
2011-05-31 7:18 ` Jameson Graef Rollins
0 siblings, 2 replies; 7+ messages in thread
From: Felix Geller @ 2011-05-30 19:30 UTC (permalink / raw)
To: notmuch
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
Hi all,
I'm using a version of notmuch based on cb84187 from the master branch
on notmuchmail.org/git/notmuch and am accessing it mostly through the
Emacs UI. Signature verification seems to work nicely, only decryption
fails for any message/thread that I've tried it on. The respective
notmuch process
notmuch show --format=json --decrypt 'id:x'
starts eating all my CPU and doesn't return. Doing it on the command
line using gpg directly or going through Emacs' epa works fine. Most of
the test cases in crypto fail as well, but I'm not sure which ones are
actually supposed to work.
My OS is MacOS X, which seems to be non-existent among notmuch
developers and therefore might at some level be the cause. However, I
built gmime 2.4.24 (through a little modification to MacPorts'
respective Portfile) as was recommended on IRC at some point and am not
aware of any other incompatibilities.
I'm not sure how to identify the cause for this problem, do you have any
hints where to start searching?
Cheers,
Felix
[-- Attachment #2: Type: application/pgp-signature, Size: 202 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Decryption fails
2011-05-30 19:30 Decryption fails Felix Geller
@ 2011-05-30 19:36 ` David Bremner
2011-05-31 7:18 ` Jameson Graef Rollins
1 sibling, 0 replies; 7+ messages in thread
From: David Bremner @ 2011-05-30 19:36 UTC (permalink / raw)
To: Felix Geller, notmuch
On Mon, 30 May 2011 21:30:03 +0200, Felix Geller <fgeller@gmail.com> wrote:
> starts eating all my CPU and doesn't return. Doing it on the command
> line using gpg directly or going through Emacs' epa works fine. Most of
> the test cases in crypto fail as well, but I'm not sure which ones are
> actually supposed to work.
I can't help much with MacOS X, but all of the test cases should work
with gmime 2.4.24 (at least they do for people on Debian).
d
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Decryption fails
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
1 sibling, 1 reply; 7+ messages in thread
From: Jameson Graef Rollins @ 2011-05-31 7:18 UTC (permalink / raw)
To: Felix Geller, notmuch
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
On Mon, 30 May 2011 21:30:03 +0200, Felix Geller <fgeller@gmail.com> wrote:
> Most of the test cases in crypto fail as well, but I'm not sure which
> ones are actually supposed to work.
Hey, Felix. As David said, all crypto tests should be passing with
libgmime 2.4.24. It would probably be instructive to know which crypto
tests failed and why. Maybe you could supply some output from the
failed crypto tests.
jamie.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Decryption fails
2011-05-31 7:18 ` Jameson Graef Rollins
@ 2011-05-31 17:33 ` Felix Geller
2011-06-02 15:35 ` Jameson Graef Rollins
0 siblings, 1 reply; 7+ messages in thread
From: Felix Geller @ 2011-05-31 17:33 UTC (permalink / raw)
To: Jameson Graef Rollins, notmuch
[-- Attachment #1.1: Type: text/plain, Size: 1227 bytes --]
On Tue, 31 May 2011 00:18:26 -0700, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
> Hey, Felix. As David said, all crypto tests should be passing with
> libgmime 2.4.24. It would probably be instructive to know which crypto
> tests failed and why. Maybe you could supply some output from the
> failed crypto tests.
Ok, so the following tests pass:
PASS emacs delivery of signed message
PASS emacs delivery of encrypted + signed message
PASS emacs delivery of encrypted message with attachment
I'm attaching the full output for the cypto tests.
I get the following trace when using show --decrypt to decrypt a
specific message (have to kill the process to actually get the trace):
#0 0x00000001006121a6 in poll ()
#1 0x000000010006d3d2 in gpg_ctx_op_step ()
#2 0x000000010006e5c7 in gpg_decrypt ()
#3 0x00000001000566cf in g_mime_multipart_encrypted_decrypt ()
#4 0x000000010000a413 in show_message_part (part=0x10606fc20,
#state=0x7fff5fbfd1c0, format=0x10002ef80, params=0x7fff5fbfd2c0,
#first=1) at show-message.c:71
So I guess it ends up looping or waiting in poll(), but I can't tell why
it would do that. I guess the next step is to post to the gmime mailing
list, or?
Cheers,
Felix
[-- Attachment #1.2: crypto_tests.txt --]
[-- Type: text/plain, Size: 9323 bytes --]
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 <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"}]}]},
- []]]]
+[]
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 <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"}]}]},
- []]]]
+[]
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 <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"}]}]},
- []]]]
+[]
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 @@
-\fmessage{ id:XXXXX depth:0 match:1 filename:XXXXX
-\fheader{
-Notmuch Test Suite <test_suite@notmuchmail.org> (2000-01-01) (encrypted inbox)
-Subject: test encrypted message 001
-From: Notmuch Test Suite <test_suite@notmuchmail.org>
-To: test_suite@notmuchmail.org
-Date: 01 Jan 2000 12:00:00 -0000
-\fheader}
-\fbody{
-\fpart{ ID: 1, Content-type: multipart/encrypted
-\fpart{ ID: 2, Content-type: application/pgp-encrypted
-Non-text part: application/pgp-encrypted
-\fpart}
-\fpart{ ID: 3, Content-type: multipart/mixed
-\fpart{ ID: 4, Content-type: text/plain
-This is a test encrypted message.
-\fpart}
-\fattachment{ ID: 5, Content-type: application/octet-stream
-Attachment: TESTATTACHMENT (application/octet-stream)
-Non-text part: application/octet-stream
-\fattachment}
-\fpart}
-\fpart}
-\fbody}
-\fmessage}
+
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 <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"}]}]}]},
- []]]]
+[]
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 <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"}]}]},
- []]]]
+[]
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 <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"}]}]},
- []]]]
+[]
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 <test_suite@notmuchmail.org>
-Subject: Re: test encrypted message 002
-On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.org> 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 <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"}]}]},
- []]]]
+[]
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 --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Decryption fails
2011-05-31 17:33 ` Felix Geller
@ 2011-06-02 15:35 ` Jameson Graef Rollins
2011-06-02 16:49 ` Felix Geller
0 siblings, 1 reply; 7+ messages in thread
From: Jameson Graef Rollins @ 2011-06-02 15:35 UTC (permalink / raw)
To: Felix Geller, notmuch
[-- Attachment #1: Type: text/plain, Size: 1301 bytes --]
On Tue, 31 May 2011 19:33:29 +0200, Felix Geller <fgeller@gmail.com> wrote:
> I get the following trace when using show --decrypt to decrypt a
> specific message (have to kill the process to actually get the trace):
>
> #0 0x00000001006121a6 in poll ()
> #1 0x000000010006d3d2 in gpg_ctx_op_step ()
> #2 0x000000010006e5c7 in gpg_decrypt ()
> #3 0x00000001000566cf in g_mime_multipart_encrypted_decrypt ()
> #4 0x000000010000a413 in show_message_part (part=0x10606fc20,
> #state=0x7fff5fbfd1c0, format=0x10002ef80, params=0x7fff5fbfd2c0,
> #first=1) at show-message.c:71
>
> So I guess it ends up looping or waiting in poll(), but I can't tell why
> it would do that. I guess the next step is to post to the gmime mailing
> list, or?
Hey, Felix. Yeah, I unfortunately don't have any other suggestions
other than asking the gmime folks.
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.
jamie.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Decryption fails
2011-06-02 15:35 ` Jameson Graef Rollins
@ 2011-06-02 16:49 ` Felix Geller
2011-06-02 17:18 ` Jameson Graef Rollins
0 siblings, 1 reply; 7+ messages in thread
From: Felix Geller @ 2011-06-02 16:49 UTC (permalink / raw)
To: Jameson Graef Rollins, notmuch
[-- 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 --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Decryption fails
2011-06-02 16:49 ` Felix Geller
@ 2011-06-02 17:18 ` Jameson Graef Rollins
0 siblings, 0 replies; 7+ messages in thread
From: Jameson Graef Rollins @ 2011-06-02 17:18 UTC (permalink / raw)
To: Felix Geller, notmuch
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
On Thu, 02 Jun 2011 18:49:22 +0200, Felix Geller <fgeller@gmail.com> wrote:
> Jeff replied and sent me a working patch :) Not sure yet how he prefers
> to publish the patch, but the problem is fixed.
That's great! What did Jeff say exactly? Is the patch to gmime 2.4?
Did he mention that he was including them in upstream, hopefully in the
next release?
> > 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.
Those test failures look very strange to me. There are a bunch of 'n's
being output after the commas in the json output. Felix, are you sure
you haven't modified your source at all?
jamie.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-06-02 17:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-06-02 17:18 ` Jameson Graef Rollins
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).