[PATCH 3/5] cli/count: add --output=modifications

2015-08-12 Thread Daniel Schoepe
Maybe another consistent solution is to add a --format argument to count, with JSON as one option. That way we could even add more information to other count results (if that becomes needed at some point) without breaking code using the JSON interface. Best regards, Daniel

[PATCH 3/5] cli/count: add --output=modifications

2015-08-12 Thread David Bremner
Tomi Ollila writes: > $ notmuch metadata uuid > $ notmuch metadata lastmod > $ notmuch metadata uuid lastmod > $ notmuch metadata lastmod uuid > > Now we can bikeshed whether this is good idea -- it seems OK. We will have some set of 'fake' metadata keys that are not actually stored in xapian

[PATCH 3/5] cli/count: add --output=modifications

2015-08-12 Thread Tomi Ollila
On Tue, Aug 11 2015, David Bremner wrote: > Tomi Ollila 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

Re: [PATCH 3/5] cli/count: add --output=modifications

2015-08-12 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: $ notmuch metadata uuid $ notmuch metadata lastmod $ notmuch metadata uuid lastmod $ notmuch metadata lastmod uuid Now we can bikeshed whether this is good idea -- it seems OK. We will have some set of 'fake' metadata keys that are not actually

Re: [PATCH 3/5] cli/count: add --output=modifications

2015-08-12 Thread Daniel Schoepe
Maybe another consistent solution is to add a --format argument to count, with JSON as one option. That way we could even add more information to other count results (if that becomes needed at some point) without breaking code using the JSON interface. Best regards, Daniel

[PATCH 3/5] cli/count: add --output=modifications

2015-08-11 Thread David Bremner
Tomi Ollila 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

Re: [PATCH 3/5] cli/count: add --output=modifications

2015-08-11 Thread David Bremner
Tomi Ollila tomi.oll...@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.

Re: [PATCH 3/5] cli/count: add --output=modifications

2015-08-11 Thread Tomi Ollila
On Tue, Aug 11 2015, David Bremner da...@tethera.net wrote: Tomi Ollila tomi.oll...@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

[PATCH 3/5] cli/count: add --output=modifications

2015-08-10 Thread Tomi Ollila
On Sun, Aug 09 2015, David Bremner wrote: > We need some way to extract the uuid/revision of the database, and > count seems like the least bad choice of current commands. > The (perhaps weak) argument for count over search is that count > already reports statistics about the entire database.

Re: [PATCH 3/5] cli/count: add --output=modifications

2015-08-10 Thread Tomi Ollila
On Sun, Aug 09 2015, David Bremner da...@tethera.net wrote: We need some way to extract the uuid/revision of the database, and count seems like the least bad choice of current commands. The (perhaps weak) argument for count over search is that count already reports statistics about the entire

[PATCH 3/5] cli/count: add --output=modifications

2015-08-09 Thread David Bremner
We need some way to extract the uuid/revision of the database, and count seems like the least bad choice of current commands. The (perhaps weak) argument for count over search is that count already reports statistics about the entire database. --- notmuch-count.c| 18

[PATCH 3/5] cli/count: add --output=modifications

2015-08-09 Thread David Bremner
We need some way to extract the uuid/revision of the database, and count seems like the least bad choice of current commands. The (perhaps weak) argument for count over search is that count already reports statistics about the entire database. --- notmuch-count.c| 18