Re: (emacs) Parsing problems replying to encrypted html
authorDavid Bremner <david@tethera.net>
Sat, 12 Mar 2016 13:33:05 +0000 (09:33 +2000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:17 +0000 (16:21 -0700)
81/0b2f7bf70d004042ac6d692824012ec3f99754 [new file with mode: 0644]

diff --git a/81/0b2f7bf70d004042ac6d692824012ec3f99754 b/81/0b2f7bf70d004042ac6d692824012ec3f99754
new file mode 100644 (file)
index 0000000..228a02e
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id A93A16DE18A6\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 05:33:17 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.032\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.032 tagged_above=-999 required=5\r
+ tests=[AWL=-0.021, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id PhawoPTBsQjn for <notmuch@notmuchmail.org>;\r
+ Sat, 12 Mar 2016 05:33:15 -0800 (PST)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 5BA3A6DE18A4\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 05:33:15 -0800 (PST)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1aejfs-0005k1-NE; Sat, 12 Mar 2016 08:33:44 -0500\r
+Received: (nullmailer pid 29095 invoked by uid 1000);\r
+ Sat, 12 Mar 2016 13:33:05 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, Matthew Lear <matt@bubblegen.co.uk>,\r
+ David Edmondson <dme@dme.org>\r
+Cc: notmuch@notmuchmail.org\r
+Subject: Re: (emacs) Parsing problems replying to encrypted html\r
+In-Reply-To: <m260wxkvf3.fsf@guru.guru-group.fi>\r
+References: <f50e07855e9bbbdd780ef925d8e2d879.squirrel@webmail.plus.net>\r
+ <m2a8miwc6x.fsf@dme.org>\r
+ <c4ff9f2c141441be10b1cb4b1e0300a7.squirrel@webmail.plus.net>\r
+ <56DD48B3.90604@bubblegen.co.uk> <87mvqatr6y.fsf@zancas.localnet>\r
+ <87h9gigfyz.fsf@bubblegen.co.uk> <87pov58b9y.fsf@zancas.localnet>\r
+ <m260wxkvf3.fsf@guru.guru-group.fi>\r
+User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sat, 12 Mar 2016 09:33:05 -0400\r
+Message-ID: <87wpp76ctq.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 12 Mar 2016 13:33:17 -0000\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+> 2016-03-08 (Tue) 14:16:01: reply --format=sexp --format-version=1 --reply-to=sender thread:0000000000004a6f\r
+> 2016-03-08 (Tue) 14:16:01: show --format=raw --part=2 id:56DDE706.6060702@bubblegen.co.uk\r
+> 2016-03-08 (Tue) 14:16:01: show --format=sexp --include-html --part=3 id:56DDE706.6060702@bubblegen.co.uk\r
+> 2016-03-08 (Tue) 14:16:01: show --format=raw --part=3 id:56DDE706.6060702@bubblegen.co.uk\r
+>\r
+\r
+I think the problem is in the following let form, which uses\r
+notmuch-show-process-crypto. That isn't set in search mode. I'm unclear\r
+on what the right solution is here; we could check\r
+notmuch-crypto-process-mime, but I'm not sure how this would interact\r
+with the handling of prefix arguments (for temporary toggling).\r
+\r
+\r
+(defun notmuch-mua-reply (query-string &optional sender reply-all)\r
+  (let ((args '("reply" "--format=sexp" "--format-version=1"))\r
+       (process-crypto notmuch-show-process-crypto)\r
+       reply\r
+       original)\r