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 64C676DE012F for ; Fri, 1 Jul 2016 04:59:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.565 X-Spam-Level: X-Spam-Status: No, score=0.565 tagged_above=-999 required=5 tests=[AWL=-0.087, 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 8zbm3e4WCxKU for ; Fri, 1 Jul 2016 04:59:10 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 919696DE00C8 for ; Fri, 1 Jul 2016 04:59:10 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 8DAEF10007F; Fri, 1 Jul 2016 14:58:23 +0300 (EEST) From: Tomi Ollila To: Sanel Zukan , notmuch@notmuchmail.org Subject: Re: Issue with verifying cleartext signed messages In-Reply-To: <87oa6hbr4o.fsf@darkstar.example.net> References: <87oa6hbr4o.fsf@darkstar.example.net> User-Agent: Notmuch/0.22+56~ge2391a7 (https://notmuchmail.org) Emacs/24.5.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: Fri, 01 Jul 2016 11:59:19 -0000 On Fri, Jul 01 2016, Sanel Zukan wrote: > Hi, > > I'm using epa-verify-cleartext-in-region to verify cleartext signed > messages and noticed it will sometimes fail with notmuch, especially > when target mail message is part of longer thread. > > For example, when signed mail is first in thread, body will look like: > > -----BEGIN PGP SIGNED MESSAGE----- > > -----BEGIN PGP SIGNATURE----- > > -----END PGP SIGNATURE----- > > and epa-verify-cleartext-in-region will correctly capture and verify it. > However, when the message is second or third in thread, notmuch will > append spaces in front of it, making it looks like this: > > -----BEGIN PGP SIGNED MESSAGE----- > > -----BEGIN PGP SIGNATURE----- > > -----END PGP SIGNATURE----- > > epa-verify-cleartext-in-region will fail here with: "Invalid cleartext > signed message". > > Error is reproducible - copy the body of message with signature in new > buffer, remove starting spaces and epa-verify-cleartext-in-region will > work. > > Any idea how to solve this? Or even better, is it possible to display > messages flat, without tree view. > > If you can, please CC me with reply as I'm not member of this list. Does pressing '<' in show buffer help ? Tomi > > Thanks in advace. > > Best, > Sanel