--- /dev/null
+Return-Path: <matt@bubblegen.co.uk>\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 92F836DE1808\r
+ for <notmuch@notmuchmail.org>; Tue, 8 Mar 2016 03:44:15 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.642\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.642 tagged_above=-999 required=5 tests=[AWL=0.058,\r
+ RCVD_IN_DNSWL_LOW=-0.7] 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 bLC2Ekdn2V_I for <notmuch@notmuchmail.org>;\r
+ Tue, 8 Mar 2016 03:44:13 -0800 (PST)\r
+Received: from avasout04.plus.net (avasout04.plus.net [212.159.14.19])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 391506DE178D\r
+ for <notmuch@notmuchmail.org>; Tue, 8 Mar 2016 03:44:12 -0800 (PST)\r
+Received: from localhost ([84.93.237.98]) by avasout04 with smtp\r
+ id TPk61s001283uBY01Pk7q3; Tue, 08 Mar 2016 11:44:10 +0000\r
+X-CM-Score: 0.00\r
+X-CNFS-Analysis: v=2.1 cv=K//fZHiI c=1 sm=1 tr=0\r
+ a=BJaFPv9AyABFDM2hXLRoEA==:117 a=BJaFPv9AyABFDM2hXLRoEA==:17\r
+ a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=8nJEP1OIZ-IA:10\r
+ a=7OsogOcEt9IA:10 a=80hmnl3cAAAA:8 a=_-GYKy-_KWKWMQEewQQA:9\r
+ a=BliXh7agYRpINtLY:21 a=g9xFx9DwSoorDAjz:21 a=wPNLvfGTeEIA:10\r
+Received: from localhost ([127.0.0.1] helo=webmail.plus.net)\r
+ by localhost with esmtp (Exim 4.76)\r
+ (envelope-from <matt@bubblegen.co.uk>)\r
+ id 1adG3Z-0005nF-VV; Tue, 08 Mar 2016 11:44:06 +0000\r
+Received: from 216.31.211.11 (proxying for unknown)\r
+ (SquirrelMail authenticated user bubblegen+matt)\r
+ by webmail.plus.net with HTTP; Tue, 8 Mar 2016 11:44:06 -0000\r
+Message-ID: <590e9f6c225d559cc9e9f2f4fbdcaa57.squirrel@webmail.plus.net>\r
+In-Reply-To: <87pov58b9y.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
+Date: Tue, 8 Mar 2016 11:44:06 -0000\r
+Subject: Re: (emacs) Parsing problems replying to encrypted html\r
+From: "Matthew Lear" <matt@bubblegen.co.uk>\r
+To: "David Bremner" <david@tethera.net>\r
+Cc: "Matthew Lear" <matt@bubblegen.co.uk>, "David Edmondson" <dme@dme.org>,\r
+ notmuch@notmuchmail.org\r
+Reply-To: matt@bubblegen.co.uk\r
+User-Agent: SquirrelMail\r
+MIME-Version: 1.0\r
+Content-Type: text/plain;charset=iso-8859-1\r
+Content-Transfer-Encoding: 8bit\r
+X-Priority: 3 (Normal)\r
+Importance: Normal\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: Tue, 08 Mar 2016 11:44:15 -0000\r
+\r
+> Thanks for the test case. I can duplicate a (the?) bug as\r
+> follows. Replying to that message from notmuch-show mode works, but\r
+> replying from notmuch-search mode yields\r
+>\r
+>> !!! Bodypart insert error: Wrong type argument: number-or-marker-p, nil\r
+>> !!!\r
+>> [ application/pgp-encrypted ]\r
+>> Version: 1\r
+>> [ encrypted.asc: application/octet-stream (as text/plain) ]\r
+>> !!! Bodypart insert error: Internal error: No :content from ("show"\r
+>> "--format=sexp" "--include-html" "--part=3"\r
+>> "id:56DDE706.6060702@bubblegen.co.uk") !!!\r
+>\r
+> Followed by the ciphertext.\r
+>> -----BEGIN PGP MESSAGE-----\r
+>\r
+> If anyone wants to play with this, you just need to import the notmuch\r
+> test key into your keyring, something like\r
+>\r
+> gpg --import path/to/notmuch-source/test/gnupg-secret-key.asc\r
+>\r
+> What's odd is that the notmuch command in the error message works on the\r
+> command line.\r
+>\r
+\r
+Hmm. In emacs, if I try to reply to the message from notmuch-search, I get\r
+no error but there is no quoted text from the original message in the\r
+reply body and all I see is the 'on <date>, <person> wrote:' citation.\r
+Replying from notmuch-show gives me the error I mentioned previously.\r
+\r