1 Return-Path: <fgeller@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 637B0429E2F
\r
6 for <notmuch@notmuchmail.org>; Tue, 31 May 2011 10:33:38 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.789 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_MIME_NO_TEXT=0.01]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id JW8ezTxhEi42 for <notmuch@notmuchmail.org>;
\r
18 Tue, 31 May 2011 10:33:37 -0700 (PDT)
\r
19 Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com
\r
20 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 9F54E429E2B
\r
23 for <notmuch@notmuchmail.org>; Tue, 31 May 2011 10:33:36 -0700 (PDT)
\r
24 Received: by bwg12 with SMTP id 12so4350381bwg.26
\r
25 for <notmuch@notmuchmail.org>; Tue, 31 May 2011 10:33:35 -0700 (PDT)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
27 h=domainkey-signature:from:to:subject:in-reply-to:references
\r
28 :user-agent:date:message-id:mime-version:content-type;
\r
29 bh=xH5Q8fWHXtV1dusSOczwp/foGtG9hW/cQqy/5GColqM=;
\r
30 b=tDhLhNA9FvUmYvGef1QL9WD84IBDUg9F9U1EjXZPHrWWcae1XjzamC/DfihoeVuYx/
\r
31 IUujbypzZ8ydof0CRclf6ovI2x8yTR/xyeX6/r80g3NHm4NQsdlZc61LmH+8aOKlj62U
\r
32 jtK/cUTJttGYdY5SrxvACuEBPu7z8fDaHfy4Q=
\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
34 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
35 :mime-version:content-type;
\r
36 b=CDrznlIL6/IOuKPOz55CMXS0o8yHVneQQu0+h1shmU2l0QYvX+u6Vj6pKBq6lV6NFl
\r
37 +ZN1DuAykHq82g4b00/Ha4jRFZxCyJsQOU6rfvn1WpARIJH7Ce6LfeO1jYoEkyqkTwKv
\r
38 iWvzrsl83lsc0mQdbc3O/GWfQxrh3jSimVkOI=
\r
39 Received: by 10.204.128.90 with SMTP id j26mr2249089bks.116.1306863215017;
\r
40 Tue, 31 May 2011 10:33:35 -0700 (PDT)
\r
41 Received: from localhorst.example.com (brln-4d0c69f8.pool.mediaWays.net.
\r
43 by mx.google.com with ESMTPS id a28sm173251fak.1.2011.05.31.10.33.31
\r
44 (version=TLSv1/SSLv3 cipher=OTHER);
\r
45 Tue, 31 May 2011 10:33:33 -0700 (PDT)
\r
46 Received: by localhorst.example.com (Postfix, from userid 501)
\r
47 id 7A2DE4225459; Tue, 31 May 2011 19:33:30 +0200 (CEST)
\r
48 From: Felix Geller <fgeller@gmail.com>
\r
49 To: Jameson Graef Rollins <jrollins@finestructure.net>,
\r
50 notmuch@notmuchmail.org
\r
51 Subject: Re: Decryption fails
\r
52 In-Reply-To: <87wrh7ibi5.fsf@servo.factory.finestructure.net>
\r
53 References: <m2zkm4dm10.fsf@gmail.com>
\r
54 <87wrh7ibi5.fsf@servo.factory.finestructure.net>
\r
55 User-Agent: Emacs/23.3.1 (x86_64-apple-darwin10.7.0)
\r
56 Date: Tue, 31 May 2011 19:33:29 +0200
\r
57 Message-ID: <m2wrh6epw6.fsf@gmail.com>
\r
59 Content-Type: multipart/signed; boundary="==-=-=";
\r
60 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
61 X-BeenThere: notmuch@notmuchmail.org
\r
62 X-Mailman-Version: 2.1.13
\r
64 List-Id: "Use and development of the notmuch mail system."
\r
65 <notmuch.notmuchmail.org>
\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
67 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
69 List-Post: <mailto:notmuch@notmuchmail.org>
\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
72 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
73 X-List-Received-Date: Tue, 31 May 2011 17:33:38 -0000
\r
76 Content-Type: multipart/mixed; boundary="=-=-="
\r
80 On Tue, 31 May 2011 00:18:26 -0700, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
\r
81 > Hey, Felix. As David said, all crypto tests should be passing with
\r
82 > libgmime 2.4.24. It would probably be instructive to know which crypto
\r
83 > tests failed and why. Maybe you could supply some output from the
\r
84 > failed crypto tests.
\r
86 Ok, so the following tests pass:
\r
88 PASS emacs delivery of signed message
\r
89 PASS emacs delivery of encrypted + signed message
\r
90 PASS emacs delivery of encrypted message with attachment
\r
92 I'm attaching the full output for the cypto tests.
\r
94 I get the following trace when using show --decrypt to decrypt a
\r
95 specific message (have to kill the process to actually get the trace):
\r
97 #0 0x00000001006121a6 in poll ()
\r
98 #1 0x000000010006d3d2 in gpg_ctx_op_step ()
\r
99 #2 0x000000010006e5c7 in gpg_decrypt ()
\r
100 #3 0x00000001000566cf in g_mime_multipart_encrypted_decrypt ()
\r
101 #4 0x000000010000a413 in show_message_part (part=0x10606fc20,
\r
102 #state=0x7fff5fbfd1c0, format=0x10002ef80, params=0x7fff5fbfd2c0,
\r
103 #first=1) at show-message.c:71
\r
105 So I guess it ends up looping or waiting in poll(), but I can't tell why
\r
106 it would do that. I guess the next step is to post to the gmime mailing
\r
116 Content-Disposition: attachment; filename=crypto_tests.txt
\r
117 Content-Transfer-Encoding: quoted-printable
\r
119 crypto: Testing PGP/MIME signature verification and decryption
\r
120 PASS emacs delivery of signed message
\r
121 FAIL signature verification
\r
122 --- crypto.2.expected 2011-05-31 17:30:47.000000000 +0000
\r
123 +++ crypto.2.output 2011-05-31 17:30:47.000000000 +0000
\r
125 -[[[{"id": "XXXXX",
\r
127 - "filename": "YYYYY",
\r
128 - "timestamp": 946728000,
\r
129 - "date_relative": "2000-01-01",
\r
130 - "tags": ["inbox","signed"],
\r
131 - "headers": {"Subject": "test signed message 001",
\r
132 - "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
133 - "To": "test_suite@notmuchmail.org",
\r
136 - "Date": "01 Jan 2000 12:00:00 -0000"},
\r
137 - "body": [{"id": 1,
\r
138 - "sigstatus": [{"status": "good",
\r
139 - "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381",
\r
140 - "created": 946728000}],
\r
141 - "content-type": "multipart/signed",
\r
142 - "content": [{"id": 2,
\r
143 - "content-type": "text/plain",
\r
144 - "content": "This is a test signed message.\n"},
\r
146 - "content-type": "application/pgp-signature"}]}]},
\r
149 FAIL signature verification with full owner trust
\r
150 --- crypto.3.expected 2011-05-31 17:30:47.000000000 +0000
\r
151 +++ crypto.3.output 2011-05-31 17:30:47.000000000 +0000
\r
153 -[[[{"id": "XXXXX",
\r
155 - "filename": "YYYYY",
\r
156 - "timestamp": 946728000,
\r
157 - "date_relative": "2000-01-01",
\r
158 - "tags": ["inbox","signed"],
\r
159 - "headers": {"Subject": "test signed message 001",
\r
160 - "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
161 - "To": "test_suite@notmuchmail.org",
\r
164 - "Date": "01 Jan 2000 12:00:00 -0000"},
\r
165 - "body": [{"id": 1,
\r
166 - "sigstatus": [{"status": "good",
\r
167 - "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381",
\r
168 - "created": 946728000,
\r
169 - "userid": " Notmuch Test Suite <test_suite@notmuchmail.org> (INSECURE!)"=
\r
171 - "content-type": "multipart/signed",
\r
172 - "content": [{"id": 2,
\r
173 - "content-type": "text/plain",
\r
174 - "content": "This is a test signed message.\n"},
\r
176 - "content-type": "application/pgp-signature"}]}]},
\r
179 FAIL signature verification with signer key unavailable
\r
180 --- crypto.4.expected 2011-05-31 17:30:47.000000000 +0000
\r
181 +++ crypto.4.output 2011-05-31 17:30:47.000000000 +0000
\r
183 -[[[{"id": "XXXXX",
\r
185 - "filename": "YYYYY",
\r
186 - "timestamp": 946728000,
\r
187 - "date_relative": "2000-01-01",
\r
188 - "tags": ["inbox","signed"],
\r
189 - "headers": {"Subject": "test signed message 001",
\r
190 - "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
191 - "To": "test_suite@notmuchmail.org",
\r
194 - "Date": "01 Jan 2000 12:00:00 -0000"},
\r
195 - "body": [{"id": 1,
\r
196 - "sigstatus": [{"status": "error",
\r
197 - "keyid": "6D92612D94E46381",
\r
199 - "content-type": "multipart/signed",
\r
200 - "content": [{"id": 2,
\r
201 - "content-type": "text/plain",
\r
202 - "content": "This is a test signed message.\n"},
\r
204 - "content-type": "application/pgp-signature"}]}]},
\r
207 PASS emacs delivery of encrypted message with attachment
\r
208 FAIL decryption, --format=3Dtext
\r
209 --- crypto.6.expected 2011-05-31 17:30:48.000000000 +0000
\r
210 +++ crypto.6.output 2011-05-31 17:30:48.000000000 +0000
\r
213 message{ id:XXXXX depth:0 match:1 filename:XXXXX
\r
216 -Notmuch Test Suite <test_suite@notmuchmail.org> (2000-01-01) (encrypted i=
\r
218 -Subject: test encrypted message 001
\r
219 -From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
220 -To: test_suite@notmuchmail.org
\r
221 -Date: 01 Jan 2000 12:00:00 -0000
\r
227 part{ ID: 1, Content-type: multipart/encrypted
\r
229 part{ ID: 2, Content-type: application/pgp-encrypted
\r
230 -Non-text part: application/pgp-encrypted
\r
234 part{ ID: 3, Content-type: multipart/mixed
\r
236 part{ ID: 4, Content-type: text/plain
\r
237 -This is a test encrypted message.
\r
241 attachment{ ID: 5, Content-type: application/octet-stream
\r
242 -Attachment: TESTATTACHMENT (application/octet-stream)
\r
243 -Non-text part: application/octet-stream
\r
255 FAIL decryption, --format=3Djson
\r
256 --- crypto.7.expected 2011-05-31 17:30:48.000000000 +0000
\r
257 +++ crypto.7.output 2011-05-31 17:30:48.000000000 +0000
\r
259 -[[[{"id": "XXXXX",
\r
261 - "filename": "YYYYY",
\r
262 - "timestamp": 946728000,
\r
263 - "date_relative": "2000-01-01",
\r
264 - "tags": ["encrypted","inbox"],
\r
265 - "headers": {"Subject": "test encrypted message 001",
\r
266 - "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
267 - "To": "test_suite@notmuchmail.org",
\r
270 - "Date": "01 Jan 2000 12:00:00 -0000"},
\r
271 - "body": [{"id": 1,
\r
272 - "encstatus": [{"status": "good"}],
\r
274 - "content-type": "multipart/encrypted",
\r
275 - "content": [{"id": 2,
\r
276 - "content-type": "application/pgp-encrypted"},
\r
278 - "content-type": "multipart/mixed",
\r
279 - "content": [{"id": 4,
\r
280 - "content-type": "text/plain",
\r
281 - "content": "This is a test encrypted message.\n"},
\r
283 - "content-type": "application/octet-stream",
\r
284 - "filename": "TESTATTACHMENT"}]}]}]},
\r
287 FAIL decryption, --format=3Djson, --part=3D4
\r
288 --- crypto.8.expected 2011-05-31 17:30:48.000000000 +0000
\r
289 +++ crypto.8.output 2011-05-31 17:30:48.000000000 +0000
\r
292 - "content-type": "text/plain",
\r
293 - "content": "This is a test encrypted message.\n"}
\r
295 Error: search term did not match precisely one message.
\r
296 FAIL decrypt attachment (--part=3D5 --format=3Draw)
\r
297 --- crypto.9.expected 2011-05-31 17:30:47.000000000 +0000
\r
298 +++ crypto.9.output 2011-05-31 17:30:48.000000000 +0000
\r
300 -This is a test file.
\r
301 Error: search term did not match precisely one message.
\r
302 FAIL decryption failure with missing key
\r
303 --- crypto.10.expected 2011-05-31 17:30:49.000000000 +0000
\r
304 +++ crypto.10.output 2011-05-31 17:30:49.000000000 +0000
\r
306 -[[[{"id": "XXXXX",
\r
308 - "filename": "YYYYY",
\r
309 - "timestamp": 946728000,
\r
310 - "date_relative": "2000-01-01",
\r
311 - "tags": ["encrypted","inbox"],
\r
312 - "headers": {"Subject": "test encrypted message 001",
\r
313 - "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
314 - "To": "test_suite@notmuchmail.org",
\r
317 - "Date": "01 Jan 2000 12:00:00 -0000"},
\r
318 - "body": [{"id": 1,
\r
319 - "encstatus": [{"status": "bad"}],
\r
320 - "content-type": "multipart/encrypted",
\r
321 - "content": [{"id": 2,
\r
322 - "content-type": "application/pgp-encrypted"},
\r
324 - "content-type": "application/octet-stream"}]}]},
\r
327 PASS emacs delivery of encrypted + signed message
\r
328 FAIL decryption + signature verification
\r
329 --- crypto.12.expected 2011-05-31 17:30:50.000000000 +0000
\r
330 +++ crypto.12.output 2011-05-31 17:30:50.000000000 +0000
\r
332 -[[[{"id": "XXXXX",
\r
334 - "filename": "YYYYY",
\r
335 - "timestamp": 946728000,
\r
336 - "date_relative": "2000-01-01",
\r
337 - "tags": ["encrypted","inbox"],
\r
338 - "headers": {"Subject": "test encrypted message 002",
\r
339 - "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
340 - "To": "test_suite@notmuchmail.org",
\r
343 - "Date": "01 Jan 2000 12:00:00 -0000"},
\r
344 - "body": [{"id": 1,
\r
345 - "encstatus": [{"status": "good"}],
\r
346 - "sigstatus": [{"status": "good",
\r
347 - "fingerprint": "5AEAB11F5E33DCE875DDB75B6D92612D94E46381",
\r
348 - "created": 946728000,
\r
349 - "userid": " Notmuch Test Suite <test_suite@notmuchmail.org> (INSECURE!)"=
\r
351 - "content-type": "multipart/encrypted",
\r
352 - "content": [{"id": 2,
\r
353 - "content-type": "application/pgp-encrypted"},
\r
355 - "content-type": "text/plain",
\r
356 - "content": "This is another test encrypted message.\n"}]}]},
\r
359 FAIL reply to encrypted message
\r
360 --- crypto.13.expected 2011-05-31 17:30:50.000000000 +0000
\r
361 +++ crypto.13.output 2011-05-31 17:30:50.000000000 +0000
\r
363 -From: Notmuch Test Suite <test_suite@notmuchmail.org>
\r
364 -Subject: Re: test encrypted message 002
\r
366 -On 01 Jan 2000 12:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail=
\r
368 -Non-text part: multipart/encrypted
\r
369 -Non-text part: application/pgp-encrypted
\r
370 -> This is another test encrypted message.
\r
371 FAIL signature verification with revoked key
\r
372 --- crypto.14.expected 2011-05-31 17:30:50.000000000 +0000
\r
373 +++ crypto.14.output 2011-05-31 17:30:50.000000000 +0000
\r
375 -[[[{"id": "XXXXX",
\r
377 - "filename": "YYYYY",
\r
378 - "timestamp": 946728000,
\r
379 - "date_relative": "2000-01-01",
\r
380 - "tags": ["inbox","signed"],
\r
381 - "headers": {"Subject": "test signed message 001",
\r
382 - "From": "Notmuch Test Suite <test_suite@notmuchmail.org>",
\r
383 - "To": "test_suite@notmuchmail.org",
\r
386 - "Date": "01 Jan 2000 12:00:00 -0000"},
\r
387 - "body": [{"id": 1,
\r
388 - "sigstatus": [{"status": "error",
\r
389 - "keyid": "6D92612D94E46381",
\r
391 - "content-type": "multipart/signed",
\r
392 - "content": [{"id": 2,
\r
393 - "content-type": "text/plain",
\r
394 - "content": "This is a test signed message.\n"},
\r
396 - "content-type": "application/pgp-signature"}]}]},
\r
399 gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
\r
400 gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
\r
405 Content-Type: application/pgp-signature
\r
407 -----BEGIN PGP SIGNATURE-----
\r
408 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
\r
410 iEYEARECAAYFAk3lJmoACgkQMxgKfMb9y5ZIOwCg9get97nGgNgNmxbuvCqHZr7E
\r
411 V7cAoPKiJJefIIKjNsXnS2FTeTVqxGiC
\r
413 -----END PGP SIGNATURE-----
\r