1 Return-Path: <david@tethera.net>
\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 18C696DE0243
\r
6 for <notmuch@notmuchmail.org>; Fri, 1 Apr 2016 16:24:20 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.021 tagged_above=-999 required=5
\r
12 tests=[AWL=-0.010, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]
\r
14 Received: from arlo.cworth.org ([127.0.0.1])
\r
15 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id JTW_-e-SBOo2 for <notmuch@notmuchmail.org>;
\r
17 Fri, 1 Apr 2016 16:24:11 -0700 (PDT)
\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id 3EB1D6DE00DF
\r
20 for <notmuch@notmuchmail.org>; Fri, 1 Apr 2016 16:24:11 -0700 (PDT)
\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)
\r
22 (envelope-from <david@tethera.net>)
\r
23 id 1am8Qj-0000qu-8T; Fri, 01 Apr 2016 19:24:41 -0400
\r
24 Received: (nullmailer pid 27810 invoked by uid 1000);
\r
25 Fri, 01 Apr 2016 23:24:05 -0000
\r
26 From: David Bremner <david@tethera.net>
\r
27 To: Matthew Lear <matt@bubblegen.co.uk>
\r
28 Cc: notmuch@notmuchmail.org, David Edmondson <dme@dme.org>,
\r
29 Mark Walters <markwalters1009@gmail.com>
\r
30 Subject: Re: (emacs) Parsing problems replying to encrypted html
\r
31 In-Reply-To: <87mvpdgp38.fsf@bubblegen.co.uk>
\r
32 References: <f50e07855e9bbbdd780ef925d8e2d879.squirrel@webmail.plus.net>
\r
33 <m2a8miwc6x.fsf@dme.org>
\r
34 <c4ff9f2c141441be10b1cb4b1e0300a7.squirrel@webmail.plus.net>
\r
35 <56DD48B3.90604@bubblegen.co.uk> <87mvqatr6y.fsf@zancas.localnet>
\r
36 <87h9gigfyz.fsf@bubblegen.co.uk> <87pov58b9y.fsf@zancas.localnet>
\r
37 <m260wxkvf3.fsf@guru.guru-group.fi> <87wpp76ctq.fsf@zancas.localnet>
\r
38 <m2shzvrccn.fsf@dme.org> <87h9fm315q.fsf@bubblegen.co.uk>
\r
39 <87oa9timv7.fsf@zancas.localnet>
\r
40 <575b60a1d39a1ecc7d06e5c0d625be61.squirrel@webmail.plus.net>
\r
41 <87bn5tjw5e.fsf@tesseract.cs.unb.ca>
\r
42 <5ed42cd5aafdc045b5d9e1b918d10748.squirrel@webmail.plus.net>
\r
43 <87mvpdgp38.fsf@bubblegen.co.uk>
\r
44 User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1
\r
45 (x86_64-pc-linux-gnu)
\r
46 Date: Fri, 01 Apr 2016 20:24:05 -0300
\r
47 Message-ID: <87lh4wj4kq.fsf@zancas.localnet>
\r
49 Content-Type: text/plain
\r
50 X-BeenThere: notmuch@notmuchmail.org
\r
51 X-Mailman-Version: 2.1.20
\r
53 List-Id: "Use and development of the notmuch mail system."
\r
54 <notmuch.notmuchmail.org>
\r
55 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
58 List-Post: <mailto:notmuch@notmuchmail.org>
\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
60 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
62 X-List-Received-Date: Fri, 01 Apr 2016 23:24:20 -0000
\r
64 Matthew Lear <matt@bubblegen.co.uk> writes:
\r
66 >>> Hmm. I can't duplicate the problem replying from show mode with the test
\r
67 >>> message you provided. Is the appropriate key in your gpg keyring?
\r
69 >> Yes it is. I get the gpg gui prompt when opening the encrypted email and
\r
70 >> can decrypt it prior to show. As I suspected earlier in the thread, I
\r
71 >> wondered if this was related to some emacs config settings/options that I
\r
72 >> have. I can't immediately think what they would be though, and why they
\r
73 >> would trigger this particular issue for html only. Strange...
\r
75 > Do you have the following in your .emacs ?
\r
77 > (setq notmuch-multipart/alternative-discouraged '("text/plain"))
\r
79 > I think that's the work/not-work switch. I'm not sure if it makes sense
\r
80 > or not in terms of seeing the behaviour I do.
\r
82 OK, with that setting I can duplicate the problem replying to encrypted
\r
85 It's also true that notmuch-reply doesn't include the content in the
\r
86 html version of the multipart/alternative. Unlike notmuch show, it
\r
87 doesn't have the ability to send parts later, so I guess that's a
\r
90 The following patch seems to fix it for me. What I haven't worked out is
\r
91 if it will break other things. Perhaps David E or Mark (in copy) can
\r
92 comment on whether this is a sensible change, given that we now give the
\r
93 user control of showing the part on the emacs side.
\r
95 diff --git a/notmuch-reply.c b/notmuch-reply.c
\r
96 index 3c6d685..cd88d79 100644
\r
97 --- a/notmuch-reply.c
\r
98 +++ b/notmuch-reply.c
\r
99 @@ -690,7 +690,7 @@ notmuch_reply_format_sprinter(void *ctx,
\r
101 /* Start the original */
\r
102 sp->map_key (sp, "original");
\r
103 - format_part_sprinter (ctx, sp, node, TRUE, TRUE, FALSE);
\r
104 + format_part_sprinter (ctx, sp, node, TRUE, TRUE, TRUE);
\r