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 AEEB36DE12F3 for ; Tue, 19 Dec 2017 23:02:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.02 X-Spam-Level: X-Spam-Status: No, score=0.02 tagged_above=-999 required=5 tests=[AWL=0.040, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-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 BZR4a-MudgXB for ; Tue, 19 Dec 2017 23:02:12 -0800 (PST) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by arlo.cworth.org (Postfix) with ESMTPS id 946146DE12E1 for ; Tue, 19 Dec 2017 23:02:11 -0800 (PST) Received: by mail-lf0-f51.google.com with SMTP id f18so22788312lfg.8 for ; Tue, 19 Dec 2017 23:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=En5xNmksojKFo0uPrd+zTVfPHpJcB5oJ9dShA959TVc=; b=MpntsibW9NGolUiszC1o9lEz7zk0JTULSIb68WBR6vhfm2A+T4O8A2ZlYL313m1GAf 3kwstz0Dtoe6rWFMya3DN8iomObGtaBiee2SOm3VzQAOJ7+2wjVEHpcRHZo0PwMR3cbF 2+Pbj1+lLSiGUCQE0DZpo+g8wMlanpo78RCK/9iIb+IZc4nG/3MUwkKQ4GXhYEtdOboK GDF9AWlNSDeSKEuxX/ITTFGY+5H9vyJj/8XtTL9opqhlozM3e60aOieQ2k94JpOFXJ1R Nokm35NBlAqm9koQcwPWxXOs0UNDxc6hcLtONiui7BO2YNqR2RreKkhfdmCdJAopcP9n uXUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=En5xNmksojKFo0uPrd+zTVfPHpJcB5oJ9dShA959TVc=; b=Ks68izgmmqTpFV5T93rxO2lebqNfEC1+etUs9eOx5BJ0tHv+dyJMDGtjeNNT0ObVJ5 Xy9k8mckdyscafmcMyPK0BgrRWSIPQ7Kb3pfnnt28aRJClT9FnvvoempNUZTpL+9xuat eDs1oMVB/wVKU2WfpSxima5+Pe8bqoUaUaYVEb2275/xn35TDvKRl8/JQUyMof+hxQxy Gri2Q5vl4XGgbWjROISJUWdajDx/d/UtOn7V8Itm6aBr6vmd6dcrjZseby8pvm7yjpfc tOLK0gvfpYqN9g3K1b1l81AYij0VAAVNgI7ussCx34ix09HTHWzRleJnYfPyHoGt6IQI AgIQ== X-Gm-Message-State: AKGB3mL3O1Eeifyo8ln+2Klipj8EZ+OTHyFp7qJj2+VM3mL8d8otFTkK fdVgC1Ze2Ce5avbdLDTrmxv5gA== X-Google-Smtp-Source: ACJfBosEd2qWKmps3+sKhSp2dElQPGnGGinV3tf7PoSeFnPll3yWzN8cKrBN4T4sEUBwnIwuy5/ygw== X-Received: by 10.25.157.18 with SMTP id g18mr3853787lfe.76.1513753328908; Tue, 19 Dec 2017 23:02:08 -0800 (PST) Received: from localhost (mobile-access-5d6a8e-93.dhcp.inet.fi. [93.106.142.93]) by smtp.gmail.com with ESMTPSA id d13sm1993361lfl.97.2017.12.19.23.02.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Dec 2017 23:02:07 -0800 (PST) From: Jani Nikula To: Jameson Graef Rollins , Daniel Kahn Gillmor , notmuch@notmuchmail.org Subject: Re: [PATCH] cli: add support for only printing the addresses in notmuch address In-Reply-To: <878tdy8a2q.fsf@ligo.caltech.edu> References: <20171102184459.6141-1-jani@nikula.org> <87fu868l90.fsf@ligo.caltech.edu> <87ind2mccm.fsf@fifthhorseman.net> <878tdy8a2q.fsf@ligo.caltech.edu> Date: Wed, 20 Dec 2017 09:02:01 +0200 Message-ID: <873745vq52.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain 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: Wed, 20 Dec 2017 07:02:16 -0000 On Tue, 19 Dec 2017, Jameson Graef Rollins wrote: > On Tue, Dec 19 2017, Daniel Kahn Gillmor wrote: >> On Tue 2017-12-19 13:23:55 -0800, Jameson Graef Rollins wrote: >>> On Thu, Nov 02 2017, Jani Nikula wrote: >>>> The notmuch address output is much more useful for scripts with just >>>> the addresses printed. Support this using the --output=address option. >>> >>> Isn't "address" kind of orthogonal to "sender" and "recipient"? Isn't >>> this more like the --output/--format distinction in search? >> >> i think i agree with Jamie here -- it'd be nice to be able to ask for >> the addresses of the senders, or the addresses of the recipients. how >> would that be done here? > > Sorry, I see now that address already has the --format option with the > expected values. So I think either address-only or sender/recipient > should be a separate option. Note that you can give the notmuch address --output option multiple times to control the output. For example, ~$ notmuch address --output=sender --output=recipients id:878tdy8a2q.fsf@ligo.caltech.edu Jameson Graef Rollins Daniel Kahn Gillmor Jani Nikula notmuch@notmuchmail.org ~$ notmuch address --output=recipients --output=address id:878tdy8a2q.fsf@ligo.caltech.edu dkg@fifthhorseman.net jani@nikula.org notmuch@notmuchmail.org ~$ notmuch address --output=sender --output=recipients --output=address --output=count id:878tdy8a2q.fsf@ligo.caltech.edu 1 notmuch@notmuchmail.org 1 jrollins@finestructure.net 1 dkg@fifthhorseman.net 1 jani@nikula.org I prefer this to separate options. notmuch search uses separate --entire-thread, --body, and --include-html options, and I think those are getting messy. BR, Jani.