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 8BF556DE16E6 for ; Wed, 13 Jun 2018 09:11:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.049 X-Spam-Level: X-Spam-Status: No, score=-0.049 tagged_above=-999 required=5 tests=[AWL=-0.059, RCVD_IN_DNSWL_NONE=-0.0001, T_SPF_PERMERROR=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 NrAUpV2lWCPT for ; Wed, 13 Jun 2018 09:11:29 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id B0D206DE16DD for ; Wed, 13 Jun 2018 09:11:29 -0700 (PDT) Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:f004:72ff:fecc:fda9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 9C9F9F99A; Wed, 13 Jun 2018 12:11:27 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 2BEA5201FA; Wed, 13 Jun 2018 11:23:20 -0400 (EDT) From: Daniel Kahn Gillmor To: Jameson Graef Rollins , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: use new show --decrypt=stash feature in emacs UI In-Reply-To: <87vaanqkwq.fsf@ligo.caltech.edu> References: <20180611230900.11211-1-jrollins@finestructure.net> <878t7k5clp.fsf@fifthhorseman.net> <87y3fj4np2.fsf@fifthhorseman.net> <87vaanqkwq.fsf@ligo.caltech.edu> Date: Wed, 13 Jun 2018 11:23:19 -0400 Message-ID: <87po0u4sns.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Wed, 13 Jun 2018 16:11:30 -0000 On Tue 2018-06-12 23:07:33 -0700, Jameson Graef Rollins wrote: > What if notmuch-crypto-process-mime just accepted the same values that > show --decrypt does, with the same meanings, e.g.: > > ┌─────────────────────────────────────┬───────┬──────┬──────┬───────┐ > │ │ false │ auto │ true │ stash │ > ├─────────────────────────────────────┼───────┼──────┼──────┼───────┤ > │Show cleartext if session key is │ │ X │ X │ X │ > │already known │ │ │ │ │ > ├─────────────────────────────────────┼───────┼──────┼──────┼───────┤ > │Use secret keys to show cleartext │ │ │ X │ X │ > ├─────────────────────────────────────┼───────┼──────┼──────┼───────┤ > │Stash any newly recovered session │ │ │ │ X │ > │keys, reindexing message if found │ │ │ │ │ > └─────────────────────────────────────┴───────┴──────┴──────┴───────┘ > > notmuch-crypto-process-mime is really only relevant for show anyway, so > I think this makes sense. I agree, i think this makes sense. so these text strings could be mapped straight through. in addition to the strings, for the sake of supporting more native elisp-y style, if notmuch-crypto-process-mime is set to nil it should probably map to "false", and if it is set to t, it should probably map to "true". wdyt? --dkg