From: David Bremner Date: Tue, 8 Mar 2016 11:22:17 +0000 (+2000) Subject: Re: (emacs) Parsing problems replying to encrypted html X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8189d4f7a51a44559091d3b6301b5dd86373b1ca;p=notmuch-archives.git Re: (emacs) Parsing problems replying to encrypted html --- diff --git a/b8/80348d5fddc0487e8fa0c17d6b589bc47a8467 b/b8/80348d5fddc0487e8fa0c17d6b589bc47a8467 new file mode 100644 index 000000000..50cc2ba82 --- /dev/null +++ b/b8/80348d5fddc0487e8fa0c17d6b589bc47a8467 @@ -0,0 +1,86 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id C343C6DE178D + for ; Tue, 8 Mar 2016 03:22:29 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.033 +X-Spam-Level: +X-Spam-Status: No, score=-0.033 tagged_above=-999 required=5 + tests=[AWL=-0.022, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id iNG5QwWwWvg3 for ; + Tue, 8 Mar 2016 03:22:27 -0800 (PST) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id 737946DE1774 + for ; Tue, 8 Mar 2016 03:22:27 -0800 (PST) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1adFj8-0001i2-KE; Tue, 08 Mar 2016 06:22:58 -0500 +Received: (nullmailer pid 29693 invoked by uid 1000); + Tue, 08 Mar 2016 11:22:17 -0000 +From: David Bremner +To: Matthew Lear , David Edmondson +Cc: notmuch@notmuchmail.org +Subject: Re: (emacs) Parsing problems replying to encrypted html +In-Reply-To: <87h9gigfyz.fsf@bubblegen.co.uk> +References: + + + <56DD48B3.90604@bubblegen.co.uk> <87mvqatr6y.fsf@zancas.localnet> + <87h9gigfyz.fsf@bubblegen.co.uk> +User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Tue, 08 Mar 2016 07:22:17 -0400 +Message-ID: <87pov58b9y.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 08 Mar 2016 11:22:29 -0000 + +Matthew Lear writes: + +>> +>> Please encrypt a message to the attached gpg key (from the notmuch test +>> suite), and send it to the list as an attachement if you can replicate +>> the bug. +> +> Done. Attached here. +> +> [ 1457383253_0.15104.sunrise,U=4513,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,S: application/octet-stream ] + +Thanks for the test case. I can duplicate a (the?) bug as +follows. Replying to that message from notmuch-show mode works, but +replying from notmuch-search mode yields + +> !!! Bodypart insert error: Wrong type argument: number-or-marker-p, nil !!! +> [ application/pgp-encrypted ] +> Version: 1 +> [ encrypted.asc: application/octet-stream (as text/plain) ] +> !!! Bodypart insert error: Internal error: No :content from ("show" "--format=sexp" "--include-html" "--part=3" "id:56DDE706.6060702@bubblegen.co.uk") !!! + +Followed by the ciphertext. +> -----BEGIN PGP MESSAGE----- + +If anyone wants to play with this, you just need to import the notmuch +test key into your keyring, something like + +gpg --import path/to/notmuch-source/test/gnupg-secret-key.asc + +What's odd is that the notmuch command in the error message works on the +command line.