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 7855A6DE0F34 for ; Fri, 24 May 2019 15:41:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.16 X-Spam-Level: X-Spam-Status: No, score=-0.16 tagged_above=-999 required=5 tests=[AWL=0.041, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] 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 24i91G5bVh75 for ; Fri, 24 May 2019 15:41:44 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 9BCA56DE0F33 for ; Fri, 24 May 2019 15:41:44 -0700 (PDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1558737703; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=1v+5vVFIX9GuTKzhimC1ggwkNRrw/d9AAX4OibG4mgI=; b=RDyJLrANKPVDdPwStGv6Z7uaa5n4d2boCCUfnXgxU95cksNqHdy8mq/S PlF8Sfby5aYSm+aoASS3XxipqMXxBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1558737703; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=1v+5vVFIX9GuTKzhimC1ggwkNRrw/d9AAX4OibG4mgI=; b=2ORlAehWqLBxvzWAX+VA0dqdWUfYQrVapfmNrefZmCR0PFJ6eAbYAzLs 4Bi0AUb9QMsctfKmTPPfeHDVrjjOnq8dhq656FjY0jhQDSfVz9A6KRw4pg FQwy5x8T/dZOdu6TwOVu3Bnj34mQZnVv9iG8se3iiyWPQclnb7jkUTal9R 3XAEb67WI2jSBhyrmsKM/Ef+iVvDUJL5eeaL3uQMez45Bj8urFSBBNzpCc YQihHsaTHQcdhON0K02vNGgnXxCvEse0uyuSUQhGA1mV95J8Y0Vl8jD7zp GMORFWaIulG3lzfLjV1TYkjMF2PLPCAV5vO+HDDzPH8rei0eJp91xA== Received: from fifthhorseman.net (ool-6c3a0662.static.optonline.net [108.58.6.98]) (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 15789F99D; Fri, 24 May 2019 18:41:42 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 81BB62024B; Fri, 24 May 2019 18:41:36 -0400 (EDT) From: Daniel Kahn Gillmor To: David Bremner , Notmuch Mail Subject: Re: [PATCH v2 4/4] cli/show: emit new whole-message crypto status output In-Reply-To: <87ef4n62d9.fsf@fifthhorseman.net> References: <20190520032228.27420-1-dkg@fifthhorseman.net> <20190520032228.27420-5-dkg@fifthhorseman.net> <87mujdsav0.fsf@tethera.net> <87ef4n62d9.fsf@fifthhorseman.net> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQUJA8Jn AAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJcQsbzAhkB AAoJEPIGkReQOOXG4fkBAO1joRxqAZY57PjdzGieXLpluk9RkWa3ufkt3YUVEpH/AP9c+pgIxtyW +FwMQRjlqljuj8amdN4zuEqaCy4hhz/1DbgzBFxCv4sWCSsGAQQB2kcPAQEHQERSZxSPmgtdw6nN u7uxY7bzb9TnPrGAOp9kClBLRwGfiPUEGBYIACYWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUCXEK/ iwIbAgUJAeEzgACBCRDyBpEXkDjlxnYgBBkWCAAdFiEEyQ5tNiAKG5IqFQnndhgZZSmuX/gFAlxC v4sACgkQdhgZZSmuX/iVWgD/fCU4ONzgy8w8UCHGmrmIZfDvdhg512NIBfx+Mz9ls5kA/Rq97vz4 z48MFuBdCuu0W/fVqVjnY7LN5n+CQJwGC0MIA7QA/RyY7Sz2gFIOcrns0RpoHr+3WI+won3xCD8+ sVXSHZvCAP98HCjDnw/b0lGuCR7coTXKLIM44/LFWgXAdZjm1wjODbg4BFxCv50SCisGAQQBl1UB BQEBB0BG4iXnHX/fs35NWKMWQTQoRI7oiAUt0wJHFFJbomxXbAMBCAeIfgQYFggAJhYhBMS8Lds4 zOlkhevpwvIGkReQOOXGBQJcQr+dAhsMBQkB4TOAAAoJEPIGkReQOOXGe/cBAPlek5d9xzcXUn/D kY6jKmxe26CTws3ZkbK6Aa5Ey/qKAP0VuPQSCRxA7RKfcB/XrEphfUFkraL06Xn/xGwJ+D0hCw== Date: Fri, 24 May 2019 18:41:36 -0400 Message-ID: <878suv5vbz.fsf@fifthhorseman.net> 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.29 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: Fri, 24 May 2019 22:41:45 -0000 --=-=-= Content-Type: text/plain On Fri 2019-05-24 16:09:38 -0400, Daniel Kahn Gillmor wrote: > On Thu 2019-05-23 07:50:43 -0300, David Bremner wrote: >> Daniel Kahn Gillmor writes: >> >>> headers: headers, >>> + crypto?: crypto, # omitted if crypto disabled, or if no part was signed or encrypted. >>> body?: [part] # omitted if --body=false >>> } >> >> I'm wondering about the "upward compatible" aspect of this. If the >> crypto key is ommitted, a client doesn't know whether to interpret that >> as no part was signed or encrypted, or just an older version of notmuch. > > I understand your concern here. Would making > notmuch_built_with("message_crypto_summary") return true solve the > problem? or, should we just make the crypto member always present? Another alternative is to condition the presence of the crypto member on the arguments (like if --verify is set), but the decision for --decrypt is a bit awkward because of our default of --decrypt=auto. --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQTJDm02IAobkioVCed2GBllKa5f+AUCXOhzIAAKCRB2GBllKa5f +C8qAP937bQgg5JsxrUBItAHXR2ODsn/9RnzVw9jwN660ZrDAQD+N0vblLjMeoFI LXSb2xDlCOpd8T0wy6j3mGEgNdEpMgM= =IrsL -----END PGP SIGNATURE----- --=-=-=--