1 Return-Path: <matt@bubblegen.co.uk>
\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 arlo.cworth.org (Postfix) with ESMTP id AABCF6DE01F5
\r
6 for <notmuch@notmuchmail.org>; Tue, 8 Mar 2016 06:06:48 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.66 tagged_above=-999 required=5 tests=[AWL=0.040,
\r
12 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from arlo.cworth.org ([127.0.0.1])
\r
14 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id ipzM4_zLZXEi for <notmuch@notmuchmail.org>;
\r
16 Tue, 8 Mar 2016 06:06:47 -0800 (PST)
\r
17 Received: from avasout04.plus.net (avasout04.plus.net [212.159.14.19])
\r
18 by arlo.cworth.org (Postfix) with ESMTPS id B753A6DE020B
\r
19 for <notmuch@notmuchmail.org>; Tue, 8 Mar 2016 06:06:44 -0800 (PST)
\r
20 Received: from localhost ([84.93.237.98]) by avasout04 with smtp
\r
21 id TS6h1s006283uBY01S6ilC; Tue, 08 Mar 2016 14:06:42 +0000
\r
23 X-CNFS-Analysis: v=2.1 cv=K//fZHiI c=1 sm=1 tr=0
\r
24 a=BJaFPv9AyABFDM2hXLRoEA==:117 a=BJaFPv9AyABFDM2hXLRoEA==:17
\r
25 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=8nJEP1OIZ-IA:10
\r
26 a=7OsogOcEt9IA:10 a=80hmnl3cAAAA:8 a=nTBm7qOPAKf81V_2nAYA:9
\r
27 a=9h0y6MHcAV6JqX-w:21 a=O4tOLaTqGRudZjUL:21 a=wPNLvfGTeEIA:10
\r
28 Received: from localhost ([127.0.0.1] helo=webmail.plus.net)
\r
29 by localhost with esmtp (Exim 4.76)
\r
30 (envelope-from <matt@bubblegen.co.uk>)
\r
31 id 1adIHZ-00087u-5V; Tue, 08 Mar 2016 14:06:41 +0000
\r
32 Received: from 216.31.211.11 (proxying for unknown)
\r
33 (SquirrelMail authenticated user bubblegen+matt)
\r
34 by webmail.plus.net with HTTP; Tue, 8 Mar 2016 14:06:41 -0000
\r
35 Message-ID: <ac9b21e31f5581025ff92fd70a8cef79.squirrel@webmail.plus.net>
\r
36 In-Reply-To: <m21t7lkuts.fsf@guru.guru-group.fi>
\r
37 References: <f50e07855e9bbbdd780ef925d8e2d879.squirrel@webmail.plus.net>
\r
38 <m2a8miwc6x.fsf@dme.org>
\r
39 <c4ff9f2c141441be10b1cb4b1e0300a7.squirrel@webmail.plus.net>
\r
40 <56DD48B3.90604@bubblegen.co.uk> <87mvqatr6y.fsf@zancas.localnet>
\r
41 <87h9gigfyz.fsf@bubblegen.co.uk> <87pov58b9y.fsf@zancas.localnet>
\r
42 <m260wxkvf3.fsf@guru.guru-group.fi>
\r
43 <m21t7lkuts.fsf@guru.guru-group.fi>
\r
44 Date: Tue, 8 Mar 2016 14:06:41 -0000
\r
45 Subject: Re: (emacs) Parsing problems replying to encrypted html
\r
46 From: "Matthew Lear" <matt@bubblegen.co.uk>
\r
47 To: "Tomi Ollila" <tomi.ollila@iki.fi>
\r
48 Cc: "David Bremner" <david@tethera.net>,
\r
49 "Matthew Lear" <matt@bubblegen.co.uk>, "David Edmondson" <dme@dme.org>,
\r
50 notmuch@notmuchmail.org
\r
51 Reply-To: matt@bubblegen.co.uk
\r
52 User-Agent: SquirrelMail
\r
54 Content-Type: text/plain;charset=iso-8859-1
\r
55 Content-Transfer-Encoding: 8bit
\r
56 X-Priority: 3 (Normal)
\r
58 X-BeenThere: notmuch@notmuchmail.org
\r
59 X-Mailman-Version: 2.1.20
\r
61 List-Id: "Use and development of the notmuch mail system."
\r
62 <notmuch.notmuchmail.org>
\r
63 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
64 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
66 List-Post: <mailto:notmuch@notmuchmail.org>
\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
68 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
70 X-List-Received-Date: Tue, 08 Mar 2016 14:06:48 -0000
\r
72 > On Tue, Mar 08 2016, Tomi Ollila wrote:
\r
75 >> On Tue, Mar 08 2016, David Bremner wrote:
\r
78 >>> Matthew Lear <matt@bubblegen.co.uk> writes:
\r
81 >>> Thanks for the test case. I can duplicate a (the?) bug as
\r
82 >>> follows. Replying to that message from notmuch-show mode works, but
\r
83 >>> replying from notmuch-search mode yields
\r
85 >>>> !!! Bodypart insert error: Wrong type argument: number-or-marker-p,
\r
87 >>>> [ application/pgp-encrypted ]
\r
89 >>>> [ encrypted.asc: application/octet-stream (as text/plain) ]
\r
90 >>>> !!! Bodypart insert error: Internal error: No :content from ("show"
\r
91 >>>> "--format=sexp" "--include-html" "--part=3"
\r
92 >>>> "id:56DDE706.6060702@bubblegen.co.uk") !!!
\r
94 >>> Followed by the ciphertext.
\r
95 >>>> -----BEGIN PGP MESSAGE-----
\r
97 >>> If anyone wants to play with this, you just need to import the notmuch
\r
98 >>> test key into your keyring, something like
\r
100 >>> gpg --import path/to/notmuch-source/test/gnupg-secret-key.asc
\r
102 >>> What's odd is that the notmuch command in the error message works on
\r
106 >> I got these to my log:
\r
108 >> when replying from search:
\r
110 >> 2016-03-08 (Tue) 14:16:01: reply --format=sexp --format-version=1
\r
111 >> --reply-to=sender thread:0000000000004a6f
\r
112 >> 2016-03-08 (Tue) 14:16:01: show --format=raw --part=2
\r
113 >> id:56DDE706.6060702@bubblegen.co.uk
\r
114 >> 2016-03-08 (Tue) 14:16:01: show --format=sexp --include-html --part=3
\r
115 >> id:56DDE706.6060702@bubblegen.co.uk
\r
117 > The above line returns (same as in latest !!! bodypart insert error !!!)
\r
119 > (:id 3 :content-type "application/octet-stream" :filename "encrypted.asc"
\r
120 > :content-length 1875)
\r
122 > -- there is no content to be included from that line :/ (and wat is this
\r
123 > "encrypted.asc" anyway ?)
\r
125 encrypted.asc is what Enigmail uses when sending using PGP/MIME. I think
\r
126 it wraps up the message body in this file (armor encrypted) and marks it
\r
127 with disposition inline. Enigmail also sends PGP/MIME version
\r
128 identification information in another MIME part
\r
129 (application/pgp-encrypted) - so you have two MIME parts per PGP/MIME
\r
132 You can view all headers in the test message if you're in notmuch-show by
\r
133 using V. You'll see something like:
\r
135 Content-Type: multipart/encrypted;
\r
136 protocol="application/pgp-encrypted";
\r
139 This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156)
\r
141 Content-Type: application/pgp-encrypted
\r
142 Content-Description: PGP/MIME version identification
\r
147 Content-Type: application/octet-stream; name="encrypted.asc"
\r
148 Content-Description: OpenPGP encrypted message
\r
149 Content-Disposition: inline; filename="encrypted.asc"
\r
151 -----BEGIN PGP MESSAGE-----
\r
154 -----END PGP MESSAGE-----
\r