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 83DD86DE1701 for ; Wed, 13 Jun 2018 11:15:25 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -1.636 X-Spam-Level: X-Spam-Status: No, score=-1.636 tagged_above=-999 required=5 tests=[AWL=-0.299, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_SOFTFAIL=0.972, 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 Q9EuSRfKGXn7 for ; Wed, 13 Jun 2018 11:15:24 -0700 (PDT) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by arlo.cworth.org (Postfix) with ESMTPS id B01E86DE16F8 for ; Wed, 13 Jun 2018 11:15:24 -0700 (PDT) Received: from smtp01.caltech.edu (localhost [127.0.0.1]) by smtp01.caltech.edu (Postfix) with ESMTP id 7183AA0437; Wed, 13 Jun 2018 11:15:23 -0700 (PDT) X-Spam-Scanned: at Caltech-IMSS on smtp01.caltech.edu by amavisd-new Received: from finestructure.net (unknown [131.215.114.240]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jrollins) by smtp-server.its.caltech.edu (Postfix) with ESMTPSA id C3421A03C0; Wed, 13 Jun 2018 11:15:22 -0700 (PDT) Received: by finestructure.net (Postfix, from userid 1000) id A044361985; Wed, 13 Jun 2018 11:15:22 -0700 (PDT) From: Jameson Graef Rollins To: Daniel Kahn Gillmor , David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: use new show --decrypt=stash feature in emacs UI In-Reply-To: <87muvy4nzl.fsf@fifthhorseman.net> References: <20180611230900.11211-1-jrollins@finestructure.net> <878t7k5clp.fsf@fifthhorseman.net> <87y3fj4np2.fsf@fifthhorseman.net> <87vaanqkwq.fsf@ligo.caltech.edu> <87po0u4sns.fsf@fifthhorseman.net> <87zhzy1wml.fsf@tesseract.cs.unb.ca> <87muvy4nzl.fsf@fifthhorseman.net> User-Agent: Notmuch/0.27~rc1+20~g2204192 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-pc-linux-gnu) Date: Wed, 13 Jun 2018 11:15:20 -0700 Message-ID: <87o9ger1s7.fsf@ligo.caltech.edu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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 18:15:25 -0000 --=-=-= Content-Type: text/plain On Wed, Jun 13 2018, Daniel Kahn Gillmor wrote: > On Wed 2018-06-13 13:25:54 -0300, David Bremner wrote: >> What about using symbols and some kind of case? less efficient but >> better error checking > > symbols would also make for a more brittle interaction between future > versions of the notmuch cli and notmuch-emacs, but i agree that the > error checking would probably be worth it (it's not hard to update the > list of symbols if a new option gets added to "show --decrypt". > > also, it looks like notmuch-mua-reply reasons about > notmuch-show-process-crypto to create the --decrypt= arg for "notmuch > reply". "notmuch reply" doesn't have --decrypt=stash (and i don't think > there's any sensible workflow that would warrant puting it there) so > some reasoning needs to be done there. symbols would make that a more > sensible approach. I'm not sure exactly what you mean by "symbols", but I'm working on something that will turn notmuch-crypto-process-mime into a choice custom with constant values. A separate derived value will be used to provide the correct bool to notmuch-show-process-crypto. I'll provide another iteration that we can discuss. jamie. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEtl0IW5QRe4ExYLZZ7TTOq+J7qrwFAlshXzgACgkQ7TTOq+J7 qrynOhAAuhgsGUWjG0dQTgjezpsGL8vV+vYXGQNduG6jbGh/OM5YQVxuGjZ44Jn5 S+GyKt0P1Gyf7bNks0/dDcI3wHfIGYfaMavAiAm5xOsStveTivR29Zrov2xqkKhi vS7Z3fgoIbhTjSpdClN8CLBPYhJbRiAlqBT2yhTrMBxVv7WuEsx3bNZuflcCUREG 02/X07CYpmApFr+jd/vADaagm7PwZ6ljp5My6KxHPNVo7+lRiPZdI93o1OjHb/9j pdziD/rqq7nk6xthlCinERJaMxuS/OBTiQ8vC0CKge9sjIqLlfWWfwEtF+/seQEQ 7ykP9yO7ep0HfDYTs6/4bUCgkkOOpZnaWjBA+SwQ57jSwlRh1crYs6HItNG56tOz fhaCCj1XvunaSeoDGT7rCKfFQD7Cjfv7eXTndj8mI4zMQt0E2jd/ZU5q7LUmHpqk R+asxUVux9UZ2BEXtTE4HJRQf9S94JLXWV+D3Ma3YgKzcEQUaR4zcStZO8pUw+5r xGyT+OtUZdPrxq7x4yRzH6MSnZzSWtaiwZ5oJTdCFrU2ChDvTTScUcxXTe601AVE c+zCu4Y+h7nx7HJRSnaByJ3RF2gYjB7SXTYqFehNqzGZNt/hmt/+BdVOh9Ds5Plh hMm1N3XjsSzVBBxCDrzwQQeLAliGKSBMUsE2bsTOd1AetELMcF8= =VwQI -----END PGP SIGNATURE----- --=-=-=--