Re: Applying patches directly from emails?
[notmuch-archives.git] / 81 / 0b2f7bf70d004042ac6d692824012ec3f99754
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 A93A16DE18A6\r
6  for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 05:33:17 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.032\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.032 tagged_above=-999 required=5\r
12  tests=[AWL=-0.021, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
13  autolearn=disabled\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 PhawoPTBsQjn for <notmuch@notmuchmail.org>;\r
17  Sat, 12 Mar 2016 05:33:15 -0800 (PST)\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 5BA3A6DE18A4\r
20  for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 05:33:15 -0800 (PST)\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
22  (envelope-from <david@tethera.net>)\r
23  id 1aejfs-0005k1-NE; Sat, 12 Mar 2016 08:33:44 -0500\r
24 Received: (nullmailer pid 29095 invoked by uid 1000);\r
25  Sat, 12 Mar 2016 13:33:05 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: Tomi Ollila <tomi.ollila@iki.fi>, Matthew Lear <matt@bubblegen.co.uk>,\r
28  David Edmondson <dme@dme.org>\r
29 Cc: notmuch@notmuchmail.org\r
30 Subject: Re: (emacs) Parsing problems replying to encrypted html\r
31 In-Reply-To: <m260wxkvf3.fsf@guru.guru-group.fi>\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>\r
38 User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1\r
39  (x86_64-pc-linux-gnu)\r
40 Date: Sat, 12 Mar 2016 09:33:05 -0400\r
41 Message-ID: <87wpp76ctq.fsf@zancas.localnet>\r
42 MIME-Version: 1.0\r
43 Content-Type: text/plain\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.20\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48  <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
50  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
55  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Sat, 12 Mar 2016 13:33:17 -0000\r
57 \r
58 Tomi Ollila <tomi.ollila@iki.fi> writes:\r
59 \r
60 > 2016-03-08 (Tue) 14:16:01: reply --format=sexp --format-version=1 --reply-to=sender thread:0000000000004a6f\r
61 > 2016-03-08 (Tue) 14:16:01: show --format=raw --part=2 id:56DDE706.6060702@bubblegen.co.uk\r
62 > 2016-03-08 (Tue) 14:16:01: show --format=sexp --include-html --part=3 id:56DDE706.6060702@bubblegen.co.uk\r
63 > 2016-03-08 (Tue) 14:16:01: show --format=raw --part=3 id:56DDE706.6060702@bubblegen.co.uk\r
64 >\r
65 \r
66 I think the problem is in the following let form, which uses\r
67 notmuch-show-process-crypto. That isn't set in search mode. I'm unclear\r
68 on what the right solution is here; we could check\r
69 notmuch-crypto-process-mime, but I'm not sure how this would interact\r
70 with the handling of prefix arguments (for temporary toggling).\r
71 \r
72 \r
73 (defun notmuch-mua-reply (query-string &optional sender reply-all)\r
74   (let ((args '("reply" "--format=sexp" "--format-version=1"))\r
75         (process-crypto notmuch-show-process-crypto)\r
76         reply\r
77         original)\r