[PATCH] cli: add support for only printing the addresses in notmuch address

Jameson Graef Rollins jrollins at finestructure.net
Tue Dec 19 23:16:16 PST 2017


On Wed, Dec 20 2017, Jani Nikula <jani at nikula.org> wrote:
> ~$ notmuch address --output=sender --output=recipients --output=address --output=count id:878tdy8a2q.fsf at ligo.caltech.edu
> 1	notmuch at notmuchmail.org
> 1	jrollins at finestructure.net
> 1	dkg at fifthhorseman.net
> 1	jani at nikula.org
>
> I prefer this to separate options.

Really?  If each is just a switch then why not:

~$ notmuch address --sender --recipients --address --count id:878tdy8a2q.fsf at ligo.caltech.edu

?  It's just shorter, right?

Also, this behavior is quite different than for search, in which only
the last --output applies.

> notmuch search uses separate --entire-thread, --body, and --include-html
> options, and I think those are getting messy.

The seem less messy than a "--output=" prefixed version of the same.

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20171219/8e311f3c/attachment.sig>


More information about the notmuch mailing list