From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id BD8286DE1410 for ; Tue, 8 Mar 2016 04:26:20 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.636 X-Spam-Level: X-Spam-Status: No, score=0.636 tagged_above=-999 required=5 tests=[AWL=-0.016, 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 JyghjJefxzfU for ; Tue, 8 Mar 2016 04:26:18 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 7464F6DE0B28 for ; Tue, 8 Mar 2016 04:26:18 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 2C64F10005A; Tue, 8 Mar 2016 14:26:25 +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: <87pov58b9y.fsf@zancas.localnet> 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:26:20 -0000 On Tue, Mar 08 2016, David Bremner wrote: > [ text/plain ] > 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. 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 2016-03-08 (Tue) 14:16:01: show --format=raw --part=3 id:56DDE706.6060702@bubblegen.co.uk 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 2016-03-08 (Tue) 14:16:37: show --format=raw --part=2 id:56DDE706.6060702@bubblegen.co.uk there's no --decrypt when from search ... and interestingly there are other differences, too... Tomi