--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 64C676DE012F\r
+ for <notmuch@notmuchmail.org>; Fri, 1 Jul 2016 04:59:19 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.565\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.565 tagged_above=-999 required=5 tests=[AWL=-0.087,\r
+ SPF_NEUTRAL=0.652] 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 8zbm3e4WCxKU for <notmuch@notmuchmail.org>;\r
+ Fri, 1 Jul 2016 04:59:10 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 919696DE00C8\r
+ for <notmuch@notmuchmail.org>; Fri, 1 Jul 2016 04:59:10 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 8DAEF10007F;\r
+ Fri, 1 Jul 2016 14:58:23 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Sanel Zukan <sanelz@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: Issue with verifying cleartext signed messages\r
+In-Reply-To: <87oa6hbr4o.fsf@darkstar.example.net>\r
+References: <87oa6hbr4o.fsf@darkstar.example.net>\r
+User-Agent: Notmuch/0.22+56~ge2391a7 (https://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Fri, 01 Jul 2016 14:58:23 +0300\r
+Message-ID: <m2vb0ph8o0.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Fri, 01 Jul 2016 11:59:19 -0000\r
+\r
+On Fri, Jul 01 2016, Sanel Zukan <sanelz@gmail.com> wrote:\r
+\r
+> Hi,\r
+>\r
+> I'm using epa-verify-cleartext-in-region to verify cleartext signed\r
+> messages and noticed it will sometimes fail with notmuch, especially\r
+> when target mail message is part of longer thread.\r
+>\r
+> For example, when signed mail is first in thread, body will look like:\r
+>\r
+> -----BEGIN PGP SIGNED MESSAGE-----\r
+> <content>\r
+> -----BEGIN PGP SIGNATURE-----\r
+> <signature>\r
+> -----END PGP SIGNATURE-----\r
+>\r
+> and epa-verify-cleartext-in-region will correctly capture and verify it.\r
+> However, when the message is second or third in thread, notmuch will\r
+> append spaces in front of it, making it looks like this:\r
+>\r
+> -----BEGIN PGP SIGNED MESSAGE-----\r
+> <content>\r
+> -----BEGIN PGP SIGNATURE-----\r
+> <signature>\r
+> -----END PGP SIGNATURE-----\r
+>\r
+> epa-verify-cleartext-in-region will fail here with: "Invalid cleartext\r
+> signed message".\r
+>\r
+> Error is reproducible - copy the body of message with signature in new\r
+> buffer, remove starting spaces and epa-verify-cleartext-in-region will\r
+> work.\r
+>\r
+> Any idea how to solve this? Or even better, is it possible to display\r
+> messages flat, without tree view.\r
+>\r
+> If you can, please CC me with reply as I'm not member of this list.\r
+\r
+Does pressing '<' in show buffer help ?\r
+\r
+Tomi\r
+\r
+>\r
+> Thanks in advace.\r
+>\r
+> Best,\r
+> Sanel\r