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 5FD9B6DE0219 for ; Fri, 15 Nov 2019 11:21:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -2.697 X-Spam-Level: X-Spam-Status: No, score=-2.697 tagged_above=-999 required=5 tests=[AWL=-0.196, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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 JnvsEaY_JztU for ; Fri, 15 Nov 2019 11:21:10 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 6EA336DE0204 for ; Fri, 15 Nov 2019 11:21:10 -0800 (PST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1573845669; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=xWMwXQOq+8hnV2KhM4DvICUXsxrz33vpHp2OYMmh1zo=; b=QCpn04MChPjQmCrRERvUk2SUmCk345/y0CgBGuVMv4gUYeAMOtFMmI80 H9xQU/39N6qFL9pSyb5enfNxPpEOBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1573845669; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=xWMwXQOq+8hnV2KhM4DvICUXsxrz33vpHp2OYMmh1zo=; b=N6ojDr8r7R0DDJZehsGOwzDETGylOpHKT9JW2DM2wGYKcozzAWLD02C0 bJVzv3B0BHsxOrU1BY2fxQvgWpkf7qg4z4Rm3v1dynpEANQ19UgkYhB8RH 2cis7oTHn5/jgzVmltF+J1KrAxz1uw39LDOf9lGi+6b2v9NftMpFl34VJk K5tFXOtkSQSc4qik24OU5huaiqxnps2L0IOIOhNoIGFYYqMsQggKDTtUwJ sQ/w94gWZ5AybkujVCrG7iSbNthFA0rxMrGoSu1eqrOWvmFlFim4JJ7OFB caB3xGyWn2dUandoWSzrXpnPcG3zHVd4xlAboUDEZQuhPaNQT94PVw== Received: from fifthhorseman.net (unknown [185.97.93.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 05A08F9A6; Fri, 15 Nov 2019 14:21:06 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id 6FD37203CD; Fri, 15 Nov 2019 11:59:34 -0500 (EST) From: Daniel Kahn Gillmor To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH] Add --message-headers flag to notmuch-show In-Reply-To: References: <20191110124929.21903-1-johan.parin@gmail.com> <874kzatox1.fsf@fifthhorseman.net> <87y2wms9r4.fsf@fifthhorseman.net> <87a790pwke.fsf@fifthhorseman.net> <87pnhvnw4i.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, 15 Nov 2019 18:59:34 +0200 Message-ID: <87a78xnki1.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; 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, 15 Nov 2019 19:21:14 -0000 --=-=-= Content-Type: text/plain On Thu 2019-11-14 22:44:32 +0200, Tomi Ollila wrote: > W/ all this information, somewhat exhaustive (not by options, but by > resources I put making it) list of thougts. > > > 1a by default behave as it is behaving now > > 1b alternative, in json and sexp, include *all* headers for the use of > frontends (in many other email systems frontends parse full email > messages and see all headers, in notmuch case frontends don't have > to do so since notmuch did the parsing and provides structured data > of (currently subset) that information > > > 2a have option --message-headers= -- when used just those headers requested > is returned (I'd personally prefer this over the "differential" options, > frontends get exactly what it wants and does not need to consider any > default where to add of suppress from) > > 2b have --add-message-header=foo --suppress-message-header=qux -- to modify > the defult list... > > 2c have named stored configurations, which can be retrieved with yet another > command line option, since naming is hard, quick potenttially dumb > example could be like: --custom-message-headers=my-cli-headers-set-3 thanks for this list. It seems to miss the other thing that is currently being contemplated, which is maybe: 3 have a new "notmuch show" configuration option that affects what headers should be emitted This is distinct from the command-line options detailed in 2a and 2b, and distinct from the idea of named bundled configuration options in the config file. --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTJDm02IAobkioVCed2GBllKa5f+AUCXc7ZdgAKCRB2GBllKa5f +CACAPoD2zgVtvCv8tho/iWgxIxGSMoJNsUIvk+0n7YAf8s5YgD+MZslKgoGVPfa 3x0cGcrYH6DUzIoUjQZkzPY4ZOzLxgU= =ocD1 -----END PGP SIGNATURE----- --=-=-=--