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 B62FF6DE0183 for ; Thu, 19 Oct 2017 04:44:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 p6QlwlDGhRaD for ; Thu, 19 Oct 2017 04:44:28 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 4FE436DE012F for ; Thu, 19 Oct 2017 04:44:28 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1e59Bc-00040N-Oq; Thu, 19 Oct 2017 07:40:28 -0400 Received: (nullmailer pid 32238 invoked by uid 1000); Thu, 19 Oct 2017 11:44:23 -0000 From: David Bremner To: Daniel Kahn Gillmor , Notmuch Mail Subject: Re: [PATCH v6 03/14] index: implement notmuch_indexopts_t with try_decrypt In-Reply-To: <20171017191008.8742-4-dkg@fifthhorseman.net> References: <20171017191008.8742-1-dkg@fifthhorseman.net> <20171017191008.8742-4-dkg@fifthhorseman.net> Date: Thu, 19 Oct 2017 08:44:23 -0300 Message-ID: <87efpzicq0.fsf@tethera.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, 19 Oct 2017 11:44:30 -0000 Daniel Kahn Gillmor writes: > +/** > + * Specify whether to decrypt encrypted parts while indexing. > + * > + * Be aware that the index is likely sufficient to reconstruct the > + * cleartext of the message itself, so please ensure that the notmuch > + * message index is adequately protected. DO NOT SET THIS FLAG TO TRUE > + * without considering the security of your index. > + */ > +notmuch_status_t > +notmuch_indexopts_set_try_decrypt (notmuch_indexopts_t *indexopts, > + bool try_decrypt); > + > +/** > + * Return whether to decrypt encrypted parts while indexing. > + * see notmuch_indexopts_set_try_decrypt. > + */ > +bool > +notmuch_indexopts_get_try_decrypt (const notmuch_indexopts_t *indexopts); > + > /** > * Destroy a notmuch_indexopts_t object. > * This is updated in dkg's git branch to use notmuch_bool_t