From: David Bremner <david@tethera.net>
To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
Subject: Re: [PATCH 3/5] cli/count: add --output=modifications
Date: Tue, 11 Aug 2015 20:45:18 +0200 [thread overview]
Message-ID: <871tf98y0x.fsf@maritornes.cs.unb.ca> (raw)
In-Reply-To: <m21tfb54fu.fsf@guru.guru-group.fi>
Tomi Ollila <tomi.ollila@iki.fi> writes:
> Currently, `notmuch count` outputs lines that contain just one integer;
> this changes this by introducing output with uuid ([0-9a-f-]) and integer
> delimited by tab character.
>
> To put it lightly, this looks "inconsistent" and don't please my aesthetic
> eye.
>
> One option (being it worse or better) could be that by default only
> lastmod value is printed and with separate option it is prefixed with
> database UUID (in every --output option).
Can you think of any use case for the uuid with the other count outputs?
It feels pretty artificial to me.
Another option is to make a "notmuch metadata" command. I'm not really
sure about the syntax, but perhaps a uuid option makes more sense
there, so e.g.
notmuch metadata --with-uuid lastmod
I'm pretty convinced that we need report uuid and lastmod together (at
least optionally). I'm less sure we need a full get/set interface for
metadata, since people with that use case could use xapian-metadata.
next prev parent reply other threads:[~2015-08-11 18:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-09 9:24 revisision tracking patches round 3 David Bremner
2015-08-09 9:24 ` [PATCH 1/5] lib: Add per-message last modification tracking David Bremner
2015-08-09 9:24 ` [PATCH 2/5] lib: API to retrieve database revision and UUID David Bremner
2015-08-09 9:24 ` [PATCH 3/5] cli/count: add --output=modifications David Bremner
2015-08-10 19:28 ` Tomi Ollila
2015-08-11 18:45 ` David Bremner [this message]
2015-08-11 20:13 ` Tomi Ollila
2015-08-12 9:38 ` David Bremner
2015-08-12 12:33 ` Daniel Schoepe
2015-08-09 9:24 ` [PATCH 4/5] cli: add global option "--uuid" David Bremner
2015-08-10 9:40 ` Daniel Schoepe
2015-08-10 11:32 ` David Bremner
2015-08-10 12:57 ` Daniel Schoepe
2015-08-10 19:42 ` Tomi Ollila
2015-08-09 9:24 ` [PATCH 5/5] lib: Add "lastmod:" queries for filtering by last modification David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871tf98y0x.fsf@maritornes.cs.unb.ca \
--to=david@tethera.net \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).