Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D8D55431FD0 for ; Thu, 2 Jun 2011 09:49:42 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.789 X-Spam-Level: X-Spam-Status: No, score=-0.789 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TuV4+JERrJ9d for ; Thu, 2 Jun 2011 09:49:41 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B0B1B431FB6 for ; Thu, 2 Jun 2011 09:49:40 -0700 (PDT) Received: by bwg12 with SMTP id 12so1190314bwg.26 for ; Thu, 02 Jun 2011 09:49:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=XN1jqm5TxcaV3s+N7vyj6FUMngnPGfZMF502GKfntZ4=; b=Bk4QSqebmgvBb6WEDMdTzyhzWjAoViHsxlyMpXpg4SHiGkuEltQSSK2Stu6nbMTxWv YfgFERgOe3p3HFIWTBC4JQDx5EMMAqYt+/ZM/fyCqtrMUenhCuEQv3iBmRWunltxh2Wz rgHysgLSrknKr2wIakKlz3cXFj+oReZ9X2Xok= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; b=fNIB4R/7iqL/0nf6w+6YE3GTQGOnjQmO8Py3axvuUqTFDGR3dH/tD2Fo9gBt4zZ5hd aiIVqWDaZJdJgdwTQ58mbHmKvgOgqqJoHu/7L9svUwTaPrbV9j8RVwStAhYRzSM8k/Zx ODlRqe5e+reJvc0VlOAkose1RjHx+i7hM6i+M= Received: by 10.204.16.198 with SMTP id p6mr956279bka.143.1307033367610; Thu, 02 Jun 2011 09:49:27 -0700 (PDT) Received: from localhorst.example.com (p509892f3.dip0.t-ipconnect.de [80.152.146.243]) by mx.google.com with ESMTPS id k16sm599385bks.1.2011.06.02.09.49.24 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Jun 2011 09:49:26 -0700 (PDT) Received: by localhorst.example.com (Postfix, from userid 501) id DDA054231ADF; Thu, 2 Jun 2011 18:49:22 +0200 (CEST) From: Felix Geller To: Jameson Graef Rollins , notmuch@notmuchmail.org Subject: Re: Decryption fails In-Reply-To: <8739jsjley.fsf@servo.factory.finestructure.net> References: <87wrh7ibi5.fsf@servo.factory.finestructure.net> <8739jsjley.fsf@servo.factory.finestructure.net> User-Agent: Emacs/23.3.1 (x86_64-apple-darwin10.7.0) Date: Thu, 02 Jun 2011 18:49:22 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2011 16:49:43 -0000 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 02 Jun 2011 08:35:49 -0700, Jameson Graef Rollins 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. =20 > Interestingly, I see the following message in your crypto test output: >=20 > Error: search term did not match precisely one message. >=20 > 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 --=-=-= Content-Disposition: attachment; filename=crypto.txt Content-Transfer-Encoding: quoted-printable 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 ", - "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": 94= 6728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "hea= ders": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite = ",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": "5AEAB11F5E33DCE875DDB75= B6D92612D94E46381",n "created": 946728000}],n "content-type": "multipart/si= gned",n "content": [{"id": 2,n "content-type": "text/plain",n "content": "T= his 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 ", - "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"}]}]}, - []]]] +[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 94= 6728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "hea= ders": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite = ",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": "5AEAB11F5E33DCE875DDB75= B6D92612D94E46381",n "created": 946728000,n "userid": " Notmuch Test Suite = (INSECURE!)"}],n "content-type": "multipart/si= gned",n "content": [{"id": 2,n "content-type": "text/plain",n "content": "T= his 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 ", - "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": 94= 6728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "hea= ders": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite = ",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 "conten= t-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=3Dtext FAIL decryption, --format=3Djson --- 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 ", - "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": 94= 6728000,n "date_relative": "2000-01-01",n "tags": ["encrypted","inbox"],n "= headers": {"Subject": "test encrypted message 001",n "From": "Notmuch Test = Suite ",n "To": "test_suite@notmuchmail.org",n = "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"i= d": 1,n "encstatus": [{"status": "good"}],n "sigstatus": [],n "content-type= ": "multipart/encrypted",n "content": [{"id": 2,n "content-type": "applicat= ion/pgp-encrypted"},n {"id": 3,n "content-type": "multipart/mixed",n "conte= nt": [{"id": 4,n "content-type": "text/plain",n "content": "This is a test = encrypted message.\n"},n {"id": 5,n "content-type": "application/octet-stre= am",n "filename": "TESTATTACHMENT"}]}]}]},n []]]] FAIL decryption, --format=3Djson, --part=3D4 --- 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 encr= ypted message.\n"} PASS decrypt attachment (--part=3D5 --format=3Draw) 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 ", - "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": 94= 6728000,n "date_relative": "2000-01-01",n "tags": ["encrypted","inbox"],n "= headers": {"Subject": "test encrypted message 001",n "From": "Notmuch Test = Suite ",n "To": "test_suite@notmuchmail.org",n = "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"i= d": 1,n "encstatus": [{"status": "bad"}],n "content-type": "multipart/encry= pted",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:=20 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 ", - "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"}]}]}, - []]]] +[[[{"id": "XXXXX",n "match": true,n "filename": "YYYYY",n "timestamp": 94= 6728000,n "date_relative": "2000-01-01",n "tags": ["encrypted","inbox"],n "= headers": {"Subject": "test encrypted message 002",n "From": "Notmuch Test = Suite ",n "To": "test_suite@notmuchmail.org",n = "Cc": "",n "Bcc": "",n "Date": "01 Jan 2000 12:00:00 -0000"},n "body": [{"i= d": 1,n "encstatus": [{"status": "good"}],n "sigstatus": [{"status": "good"= ,n "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381",n "created": 9= 46728000,n "userid": " Notmuch Test Suite (INS= ECURE!)"}],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 ", - "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": 94= 6728000,n "date_relative": "2000-01-01",n "tags": ["inbox","signed"],n "hea= ders": {"Subject": "test signed message 001",n "From": "Notmuch Test Suite = ",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 "conten= t-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 --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iEYEARECAAYFAk3nvxIACgkQMxgKfMb9y5YrGQCg6VMRqxxRJkxYS3qLf17zWv5A AFkAoIxtKVzgx2kKs5DK/N3JPlSksePA =PFBG -----END PGP SIGNATURE----- --==-=-=--