From 4ddba4e78cffe7f37c1c90591f50aba02dfd8b3b Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Tue, 8 Mar 2016 14:39:11 +0200 Subject: [PATCH] Re: (emacs) Parsing problems replying to encrypted html --- 12/041f7ce9c107cf307927d0fadc8a7cab5f43cd | 110 ++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 12/041f7ce9c107cf307927d0fadc8a7cab5f43cd diff --git a/12/041f7ce9c107cf307927d0fadc8a7cab5f43cd b/12/041f7ce9c107cf307927d0fadc8a7cab5f43cd new file mode 100644 index 000000000..e86a804ff --- /dev/null +++ b/12/041f7ce9c107cf307927d0fadc8a7cab5f43cd @@ -0,0 +1,110 @@ +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 40A3F6DE028A + for ; Tue, 8 Mar 2016 04:39:04 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.635 +X-Spam-Level: +X-Spam-Status: No, score=0.635 tagged_above=-999 required=5 tests=[AWL=-0.017, + SPF_NEUTRAL=0.652] 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 5dMgUks3QkZ6 for ; + Tue, 8 Mar 2016 04:39:02 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by arlo.cworth.org (Postfix) with ESMTP id 720776DE0274 + for ; Tue, 8 Mar 2016 04:39:02 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id D023D10005A; + Tue, 8 Mar 2016 14:39:11 +0200 (EET) +From: Tomi Ollila +To: David Bremner , Matthew Lear , + David Edmondson +Cc: notmuch@notmuchmail.org +Subject: Re: (emacs) Parsing problems replying to encrypted html +In-Reply-To: +References: + + + <56DD48B3.90604@bubblegen.co.uk> <87mvqatr6y.fsf@zancas.localnet> + <87h9gigfyz.fsf@bubblegen.co.uk> <87pov58b9y.fsf@zancas.localnet> + +User-Agent: Notmuch/0.21+81~g4743a61 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +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 12:39:04 -0000 + +On Tue, Mar 08 2016, Tomi Ollila wrote: + +> [ text/plain ] +> On Tue, Mar 08 2016, David Bremner wrote: +> +>> [ text/plain ] +>> Matthew Lear writes: +>> +>> +>> 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. +> +> I got these to my log: +> +> when replying from search: +> +> 2016-03-08 (Tue) 14:16:01: reply --format=sexp --format-version=1 --reply-to=sender thread:0000000000004a6f +> 2016-03-08 (Tue) 14:16:01: show --format=raw --part=2 id:56DDE706.6060702@bubblegen.co.uk +> 2016-03-08 (Tue) 14:16:01: show --format=sexp --include-html --part=3 id:56DDE706.6060702@bubblegen.co.uk + +The above line returns (same as in latest !!! bodypart insert error !!!) + +(:id 3 :content-type "application/octet-stream" :filename "encrypted.asc" :content-length 1875) + +-- there is no content to be included from that line :/ (and wat is this + "encrypted.asc" anyway ?) + +> when replying from show: +> +> 2016-03-08 (Tue) 14:16:37: reply --format=sexp --format-version=1 --decrypt --reply-to=sender id:56DDE706.6060702@bubblegen.co.uk + +the --decrypt here provided the content (from part=3) in this case. + + +Tomi -- 2.26.2