Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 57 / 3b5f49f3ee0185e5078476e4620abadf42fea9
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 arlo.cworth.org (Postfix) with ESMTP id 09B386DE0314\r
6  for <notmuch@notmuchmail.org>; Sun,  3 Apr 2016 11:42:18 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.172\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.172 tagged_above=-999 required=5\r
12  tests=[AWL=-0.105, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
13  RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
14  RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001]\r
15  autolearn=disabled\r
16 Received: from arlo.cworth.org ([127.0.0.1])\r
17  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
18  with ESMTP id rtqu_M-e3CVA for <notmuch@notmuchmail.org>;\r
19  Sun,  3 Apr 2016 11:42:09 -0700 (PDT)\r
20 Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com\r
21  [209.85.215.54])\r
22  by arlo.cworth.org (Postfix) with ESMTPS id 33FBD6DE01C2\r
23  for <notmuch@notmuchmail.org>; Sun,  3 Apr 2016 11:42:09 -0700 (PDT)\r
24 Received: by mail-lf0-f54.google.com with SMTP id g184so65241686lfb.3\r
25  for <notmuch@notmuchmail.org>; Sun, 03 Apr 2016 11:42:09 -0700 (PDT)\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
27  d=dme-org.20150623.gappssmtp.com; s=20150623;\r
28  h=to:cc:subject:in-reply-to:references:from:date:message-id\r
29  :mime-version; bh=Vi4S2oWPnis1sOPPbCY3t+roanIZS7h0duYDSf1A0ls=;\r
30  b=OHHDANTlvVUCkTzdnwnwv6we+uAKcF8DVixuA6DNayj7xjvk76dMoFfsV46D2//gkG\r
31  o7mYajvR5lMjYdJRo5viZkSRNq180+Kj+25/FHFu8F8gYw8DZ5w+JwbgzD77+tBcqTEv\r
32  tm2dMTGDMGJd87ukXgmjRUsVEPZJcnIHB/V7ikjZnsBWFAPyKrjmTk/kHGqQJMKs1XJi\r
33  1UJvQKRfRfsiMcAXE0GBHNvyL9vkJ6eWI3hIgBH6hwKWAHqq7FIRKIX0XU/0HKku+jQp\r
34  +cBozBZsQ2ul+QQRVi0zAtC/90qTnPnEnndXU7HHyfjGNwb+1NFt2Lz1eYEZ8gqFaGmC\r
35  6Fsw==\r
36 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
37  d=1e100.net; s=20130820;\r
38  h=x-gm-message-state:to:cc:subject:in-reply-to:references:from:date\r
39  :message-id:mime-version;\r
40  bh=Vi4S2oWPnis1sOPPbCY3t+roanIZS7h0duYDSf1A0ls=;\r
41  b=LB5fJNepU3dZ9UknyWg+wE76syGrDQx5UmJHNAxjnnIQmcw4ThnrOLbbv2cFDI7cfP\r
42  i1QylK5Ozmt5jP6ORB1yf1kZKQThD/xZCwKOAccyP5N4oPCDDW4wIpZ5Dbok2da0Nb3Z\r
43  0+URIfkwkI1hcLqV2uRUlnR6WCLVL1STlPZ8totQqkH5WPmFH/PHuuPj6HxpwKTNgSrV\r
44  Qf+ohB6ktkRriZKHgY5QNnycaTjnJ8/odegKX0P1aXDkBTOG2Et2kRIj5ZG6ChCnh/uN\r
45  85IBdZ0gIRewzbADbxFzBNswpIKfSFfoztmWqkMM4NESDhYnqNfGtOLW2AHzDWJOQrFm\r
46  inYA==\r
47 X-Gm-Message-State:\r
48  AD7BkJLK+AnOGFf7wEzAcf92oNXc9/lJbx3driVPZF1Rqn9ZGmSNtlaw+o0f6EdqBnuoVw==\r
49 X-Received: by 10.194.90.229 with SMTP id bz5mr15387963wjb.143.1459708927434; \r
50  Sun, 03 Apr 2016 11:42:07 -0700 (PDT)\r
51 Received: from disaster-area.hh.sledj.net\r
52  ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
53  by smtp.gmail.com with ESMTPSA id u145sm9935345wmu.17.2016.04.03.11.42.06\r
54  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
55  Sun, 03 Apr 2016 11:42:06 -0700 (PDT)\r
56 Received: from localhost (disaster-area.hh.sledj.net [local])\r
57  by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id a4b01762;\r
58  Sun, 3 Apr 2016 18:42:05 +0000 (UTC)\r
59 To: David Bremner <david@tethera.net>, Matthew Lear <matt@bubblegen.co.uk>\r
60 Cc: notmuch@notmuchmail.org, Mark Walters <markwalters1009@gmail.com>\r
61 Subject: Re: (emacs) Parsing problems replying to encrypted html\r
62 In-Reply-To: <87lh4wj4kq.fsf@zancas.localnet>\r
63 References: <f50e07855e9bbbdd780ef925d8e2d879.squirrel@webmail.plus.net>\r
64  <m2a8miwc6x.fsf@dme.org>\r
65  <c4ff9f2c141441be10b1cb4b1e0300a7.squirrel@webmail.plus.net>\r
66  <56DD48B3.90604@bubblegen.co.uk> <87mvqatr6y.fsf@zancas.localnet>\r
67  <87h9gigfyz.fsf@bubblegen.co.uk> <87pov58b9y.fsf@zancas.localnet>\r
68  <m260wxkvf3.fsf@guru.guru-group.fi> <87wpp76ctq.fsf@zancas.localnet>\r
69  <m2shzvrccn.fsf@dme.org> <87h9fm315q.fsf@bubblegen.co.uk>\r
70  <87oa9timv7.fsf@zancas.localnet>\r
71  <575b60a1d39a1ecc7d06e5c0d625be61.squirrel@webmail.plus.net>\r
72  <87bn5tjw5e.fsf@tesseract.cs.unb.ca>\r
73  <5ed42cd5aafdc045b5d9e1b918d10748.squirrel@webmail.plus.net>\r
74  <87mvpdgp38.fsf@bubblegen.co.uk> <87lh4wj4kq.fsf@zancas.localnet>\r
75 From: David Edmondson <dme@dme.org>\r
76 Date: Sun, 03 Apr 2016 19:42:04 +0100\r
77 Message-ID: <m2d1q6356r.fsf@dme.org>\r
78 MIME-Version: 1.0\r
79 Content-Type: text/plain\r
80 X-BeenThere: notmuch@notmuchmail.org\r
81 X-Mailman-Version: 2.1.20\r
82 Precedence: list\r
83 List-Id: "Use and development of the notmuch mail system."\r
84  <notmuch.notmuchmail.org>\r
85 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
86  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
87 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
88 List-Post: <mailto:notmuch@notmuchmail.org>\r
89 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
90 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
91  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
92 X-List-Received-Date: Sun, 03 Apr 2016 18:42:18 -0000\r
93 \r
94 On Sat, Apr 02 2016, David Bremner <david@tethera.net> wrote:\r
95 > Matthew Lear <matt@bubblegen.co.uk> writes:\r
96 >\r
97 >>>> Hmm. I can't duplicate the problem replying from show mode with the test\r
98 >>>> message you provided.  Is the appropriate key in your gpg keyring?\r
99 >>>\r
100 >>> Yes it is. I get the gpg gui prompt when opening the encrypted email and\r
101 >>> can decrypt it prior to show. As I suspected earlier in the thread, I\r
102 >>> wondered if this was related to some emacs config settings/options that I\r
103 >>> have. I can't immediately think what they would be though, and why they\r
104 >>> would trigger this particular issue for html only. Strange...\r
105 >>\r
106 >> Do you have the following in your .emacs ?\r
107 >>\r
108 >> (setq notmuch-multipart/alternative-discouraged '("text/plain"))\r
109 >>\r
110 >> I think that's the work/not-work switch. I'm not sure if it makes sense\r
111 >> or not in terms of seeing the behaviour I do.\r
112 >\r
113 > OK, with that setting I can duplicate the problem replying to encrypted\r
114 > HTML mail.\r
115 >\r
116 > It's also true that notmuch-reply doesn't include the content in the\r
117 > html version of the multipart/alternative. Unlike notmuch show, it\r
118 > doesn't have the ability to send parts later, so I guess that's a\r
119 > problem there.\r
120 >\r
121 > The following patch seems to fix it for me. What I haven't worked out is\r
122 > if it will break other things. Perhaps David E or Mark (in copy) can\r
123 > comment on whether this is a sensible change, given that we now give the\r
124 > user control of showing the part on the emacs side.\r
125 \r
126 As an alternative, could you try the patch in\r
127 id:1459708823-1852-1-git-send-email-dme@dme.org? I think that this is\r
128 really a failure on the emacs side rather than in notmuch proper.\r
129 \r
130 > diff --git a/notmuch-reply.c b/notmuch-reply.c\r
131 > index 3c6d685..cd88d79 100644\r
132 > --- a/notmuch-reply.c\r
133 > +++ b/notmuch-reply.c\r
134 > @@ -690,7 +690,7 @@ notmuch_reply_format_sprinter(void *ctx,\r
135 >  \r
136 >      /* Start the original */\r
137 >      sp->map_key (sp, "original");\r
138 > -    format_part_sprinter (ctx, sp, node, TRUE, TRUE, FALSE);\r
139 > +    format_part_sprinter (ctx, sp, node, TRUE, TRUE, TRUE);\r
140 >  \r
141 >      /* End */\r
142 >      sp->end (sp);\r