Re: (emacs) Parsing problems replying to encrypted html
authorDavid Edmondson <dme@dme.org>
Sat, 12 Mar 2016 14:37:44 +0000 (14:37 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:17 +0000 (16:21 -0700)
cb/e1c6135c964860f0e89393553dff6f0c2486e1 [new file with mode: 0644]

diff --git a/cb/e1c6135c964860f0e89393553dff6f0c2486e1 b/cb/e1c6135c964860f0e89393553dff6f0c2486e1
new file mode 100644 (file)
index 0000000..245667e
--- /dev/null
@@ -0,0 +1,111 @@
+Return-Path: <dme@dme.org>\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 34B036DE176B\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 06:37:52 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.147\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.147 tagged_above=-999 required=5\r
+ tests=[AWL=-0.080, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+ RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001]\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 Bhy2Dv5G1Fkt for <notmuch@notmuchmail.org>;\r
+ Sat, 12 Mar 2016 06:37:49 -0800 (PST)\r
+Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com\r
+ [74.125.82.51]) by arlo.cworth.org (Postfix) with ESMTPS id 269806DE01CA for\r
+ <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 06:37:49 -0800 (PST)\r
+Received: by mail-wm0-f51.google.com with SMTP id n186so53503903wmn.1\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Mar 2016 06:37:49 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=dme-org.20150623.gappssmtp.com; s=20150623;\r
+ h=to:cc:subject:in-reply-to:references:from:date:message-id\r
+ :mime-version; bh=G/lpmI7SZ5s8WmrcG7Itf0Y9m0+71eJ6FGN3C9DClMw=;\r
+ b=AyQFWYwaX9kINa+iHbfH1z0i/xQ20eOIqHkJluKYhWh4JQLCnftAqg9FXfcrlJaJTg\r
+ 7m8Tmj5zhgxrCuAaGHPGn1oYJjd4N+3w3AhoK9L7H840DS7c8n+aT1lnBlqiyTabXYdh\r
+ XzI7rqh6Al7TYp/B/3PNE/i85z92bTUzEyLC6P8m/EGKT+hb7T6dtkqsdl953b1BtWw1\r
+ UcqyU4fEh+Q1lG48aKQEsFIhblm9PMN1bT2qRADmJRia0WXBBfOmL5XvLFKxZ8JE/hyi\r
+ lOuQI1k3vVectBqrkhGTmImHVZ3y/J+A28MXP7AYzM/sEcdCjaD8Yg5ABIhrlk7WYf73\r
+ H+qw==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:to:cc:subject:in-reply-to:references:from:date\r
+ :message-id:mime-version;\r
+ bh=G/lpmI7SZ5s8WmrcG7Itf0Y9m0+71eJ6FGN3C9DClMw=;\r
+ b=H+L8fgXpMfiECXP8Lt+WSBanQjTVgmje+kJcVWQA6FSQ6JrNEceMP6WQGLQmSTj9BC\r
+ UaajnvMoXaHrhT+hJmiNS8Xw4D/rCGAJqcL+ulcKXhwGiAxz0V5cSfyLkNSU5nq9aXAQ\r
+ abp+Pq5z+UC9EN2ZHdyi93d0jVKWSjQ75fOgP6PeRewBbo4qCjQ6HFMUUakB2xxK/Yv2\r
+ 33TbVXll25ptzZVDuUROqaV0ADchxZHLvNIS58KnEz4TDm0BKABXgEzKsSgW/a6HlJf9\r
+ Ik53YPT390ja7hTbkVR2LmRPMhx0weF9dwI3ofDIIG1icaB+roWiuoEj094Ba7Q5iVZ+\r
+ I7/A==\r
+X-Gm-Message-State:\r
+ AD7BkJKerSpm987HPhMPWU8lQurh9iYtSgAoQh7wnYWFLIDjZXPYfWNrJ1J08cd4rzMlzA==\r
+X-Received: by 10.194.77.193 with SMTP id u1mr15114796wjw.73.1457793467148;\r
+ Sat, 12 Mar 2016 06:37:47 -0800 (PST)\r
+Received: from disaster-area.hh.sledj.net\r
+ ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+ by smtp.gmail.com with ESMTPSA id av3sm13432639wjc.44.2016.03.12.06.37.45\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Sat, 12 Mar 2016 06:37:45 -0800 (PST)\r
+Received: from localhost (disaster-area.hh.sledj.net [local])\r
+ by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 09dcda85;\r
+ Sat, 12 Mar 2016 14:37:44 +0000 (UTC)\r
+To: David Bremner <david@tethera.net>, Tomi Ollila <tomi.ollila@iki.fi>,\r
+ Matthew Lear <matt@bubblegen.co.uk>\r
+Cc: notmuch@notmuchmail.org\r
+Subject: Re: (emacs) Parsing problems replying to encrypted html\r
+In-Reply-To: <87wpp76ctq.fsf@zancas.localnet>\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> <87wpp76ctq.fsf@zancas.localnet>\r
+From: David Edmondson <dme@dme.org>\r
+Date: Sat, 12 Mar 2016 14:37:44 +0000\r
+Message-ID: <m2shzvrccn.fsf@dme.org>\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 14:37:52 -0000\r
+\r
+On Sat, Mar 12 2016, David Bremner wrote:\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
+Is "reply" from search mode a common pattern of use? Currently it seems\r
+generally un-useful (the thread has to contain just a single message -\r
+not just a single matching message).\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