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 E8FE16DE0243 for ; Mon, 11 Dec 2017 16:19:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.029 X-Spam-Level: X-Spam-Status: No, score=-0.029 tagged_above=-999 required=5 tests=[AWL=-0.029] 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 8XIjw18CWhSl for ; Mon, 11 Dec 2017 16:19:11 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 06CD86DE0B64 for ; Mon, 11 Dec 2017 16:19:09 -0800 (PST) Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 8ACBBF99D for ; Mon, 11 Dec 2017 19:19:09 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id B4B9120364; Mon, 11 Dec 2017 19:19:04 -0500 (EST) From: Daniel Kahn Gillmor To: Notmuch Mail Subject: Encourage explicit arguments for --decrypt in "show" and "reply" Date: Mon, 11 Dec 2017 19:18:55 -0500 Message-Id: <20171212001858.706-1-dkg@fifthhorseman.net> X-Mailer: git-send-email 2.15.1 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: Tue, 12 Dec 2017 00:19:12 -0000 The notmuch indexing subcommands ("new", "insert", and "reindex") now have a --decrypt option that takes an argument (the decryption policy), since the session-keys patches have landed. But the viewing subcommands ("show" and "reply") have their traditional --decrypt option that (as a boolean) need not take an argument, having --decrypt not present means something different from either --decrypt=true or --decrypt=false. This series allows the user to explicitly choose --decrypt=auto for the viewing subcommands, while allowing people to use the argument-free form (as an alias for --decrypt=true), but warns the user to encourage them to switch to using an explicit argument instead. This is useful normalizing work for the interface, so it's worthwhile on its own. It is also necessary preparation in the event that we decide we want to: * set up a notmuch configuration option that changes the default for --decrypt for the viewing subcommands * allow "notmuch show" to actually index encrypted messages upon their first encounter (e.g., via a new decryption policy, which i'll propose separately) As always, review and feedback welcome! --dkg