1 Return-Path: <dme@dme.org>
\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 5D5DF40DDF7
\r
6 for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 02:26:24 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id tB2gTsjPXazI for <notmuch@notmuchmail.org>;
\r
16 Mon, 15 Nov 2010 02:26:13 -0800 (PST)
\r
17 Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id BBE7940DDE8
\r
20 for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 02:26:12 -0800 (PST)
\r
21 Received: by wyb40 with SMTP id 40so6099336wyb.26
\r
22 for <notmuch@notmuchmail.org>; Mon, 15 Nov 2010 02:26:12 -0800 (PST)
\r
23 Received: by 10.216.182.75 with SMTP id n53mr6096651wem.41.1289816771124;
\r
24 Mon, 15 Nov 2010 02:26:11 -0800 (PST)
\r
25 Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com
\r
27 by mx.google.com with ESMTPS id 7sm3609558wet.0.2010.11.15.02.26.07
\r
28 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
29 Mon, 15 Nov 2010 02:26:08 -0800 (PST)
\r
30 Received: by ut.hh.sledj.net (Postfix, from userid 1000)
\r
31 id 4EA78594056; Mon, 15 Nov 2010 10:23:53 +0000 (GMT)
\r
32 To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>,
\r
33 notmuch <notmuch@notmuchmail.org>
\r
34 Subject: Re: a proposed change to JSON output to report verification of
\r
35 PGP/MIME signatures.
\r
36 In-Reply-To: <4CDE4486.2050101@fifthhorseman.net>
\r
37 References: <4CDE4486.2050101@fifthhorseman.net>
\r
38 User-Agent: Notmuch/0.5-6-g1e370fc (http://notmuchmail.org) Emacs/23.2.1
\r
39 (x86_64-pc-linux-gnu)
\r
40 From: David Edmondson <dme@dme.org>
\r
41 Date: Mon, 15 Nov 2010 10:23:53 +0000
\r
42 Message-ID: <871v6mzxza.fsf@ut.hh.sledj.net>
\r
44 Content-Type: text/plain
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.13
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Mon, 15 Nov 2010 10:26:24 -0000
\r
59 On Sat, 13 Nov 2010 02:55:50 -0500, Daniel Kahn Gillmor <dkg@fifthhorseman.net> wrote:
\r
60 > It would end up like this (without the --verify flag):
\r
62 > ---------------------------
\r
65 > "content": "here is a test message i signed on 2010-11-11.\n\n
\r
67 > "content-type": "text/plain",
\r
72 > "content-type": "application/pgp-signature",
\r
73 > "filename": "signature.asc",
\r
77 > "verified": "unknown"
\r
81 > ---------------------------
\r
83 I think that this should become:
\r
87 "content-type": "multipart/signed",
\r
91 "content": "here is a test message i signed on 2010-11-11.\n\n --dkg\n\n",
\r
92 "content-type": "text/plain",
\r
97 "content-type": "application/pgp-signature",
\r
98 "filename": "signature.asc",
\r
102 "verified": "unknown"
\r
109 i.e. the existence of the multipart/signed wrapper should be
\r
110 explicit. In general, all MIME parts should be visible. Your email would
\r
111 end up output something like
\r
112 http://dme.org/emacs/notmuch.multipart/thread.json
\r
113 (well, that's the thread, but you can see your message as the first in
\r
116 We'd render that as shown in:
\r
117 http://dme.org/emacs/notmuch.multipart/screenshot.png
\r
118 (the indentation of the parts there is optional - in this case it helps
\r
119 a lot to show the structure).
\r
121 The JSON output and the rendering are from a previous prototype (branch
\r
122 'mp3' of https://github.com/dme/notmuch).
\r
124 > and here it is with the --verify flag:
\r
126 This would change in a similar manner (only the
\r
127 application/pgp-signature part would change).
\r
129 Changing the JSON output in this way would not materially affect your
\r
130 proposal, I believe. There'd be some implicit changes in the output (for
\r
131 example, if a signature signs a multipart/mixed part your proposal would
\r
132 list it as signing the sub-parts of the multipart/mixed, but with my
\r
133 additional changes it should be listed as signing the multipart/mixed
\r
138 David Edmondson, http://dme.org
\r