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 BB1E86DE0191 for ; Wed, 29 Nov 2017 22:27:15 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.015 X-Spam-Level: X-Spam-Status: No, score=-0.015 tagged_above=-999 required=5 tests=[AWL=-0.015] 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 EbB3FcFsjvrO for ; Wed, 29 Nov 2017 22:27:15 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 0A84F6DE00C4 for ; Wed, 29 Nov 2017 22:27:15 -0800 (PST) Received: from fifthhorseman.net (ool-6c3a0662.static.optonline.net [108.58.6.98]) by che.mayfirst.org (Postfix) with ESMTPSA id 666DEF99A; Thu, 30 Nov 2017 01:27:14 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id 1F08B2090D; Thu, 30 Nov 2017 01:16:25 -0500 (EST) From: Daniel Kahn Gillmor To: David Bremner , Notmuch Mail Subject: Re: [PATCH 13/18] cli/new, insert, reindex: change index.try_decrypt to "auto" by default In-Reply-To: <87y3n68khi.fsf@tethera.net> References: <20171025065203.24403-1-dkg@fifthhorseman.net> <20171025065203.24403-14-dkg@fifthhorseman.net> <87y3n68khi.fsf@tethera.net> Date: Thu, 30 Nov 2017 01:16:24 -0500 Message-ID: <87efog5m13.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Thu, 30 Nov 2017 06:27:15 -0000 On Thu 2017-11-16 08:40:41 -0400, David Bremner wrote: > Daniel Kahn Gillmor writes: > >> The new "auto" decryption policy is not only good for "notmuch show" >> and "notmuch reindex". It's also useful for indexing messages -- >> there's no good reason to not try to go ahead and index the cleartext >> of a message that we have a stashed session key for. > > I'm confused here. You talk about indexing other than reindex, but the > only tests that change are reindex? Is this meant to change "notmuch > new" behaviour? the "auto" policy won't change the behavior of notmuch upon seeing a new message (new, insert) from "false" -- all it does differently from "false" is try to use session keys when they are available (and there's no way for them to be available on a never-before-seen message). --dkg