[PATCH 4/5] cli: add global option "--uuid"

2015-08-10 Thread Tomi Ollila
On Sun, Aug 09 2015, David Bremner wrote: > The function notmuch_exit_if_unmatched_db_uuid is split from > notmuch_process_shared_options because it needs an open notmuch > database. > --- > doc/man1/notmuch.rst | 12 ++-- > notmuch-client.h | 4 >

[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.

[PATCH] configure: clean up messages around reading libnotmuch version

2015-08-10 Thread David Bremner
Jani Nikula writes: > From: Jani Nikula > > Clean up punctuation for consistency, and add newline for clean > configure output. pushed, with thanks, d

[PATCH] configure: clean up messages around reading libnotmuch version

2015-08-10 Thread Jani Nikula
From: Jani Nikula Clean up punctuation for consistency, and add newline for clean configure output. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index d1bcc20eb6c2..d28988036505 100755 --- a/configure +++

[PATCH 4/5] cli: add global option "--uuid"

2015-08-10 Thread Daniel Schoepe
On Mon, 10 Aug 2015 13:32 +0200, David Bremner wrote: > So compacting is in fact a bit of a strange case, it preserves the > lastmod counters (because those are just terms on documents), but not > the uuid. This means from notmuch point of view have no programmatic way > to know that we can trust

[PATCH] build: extract library versions from notmuch.h

2015-08-10 Thread David Bremner
Tomi Ollila writes: > > Good idea. see below for 2 things. Thanks for the review. I pushed with your changes, plus deleting created files on the non-error path. d

[PATCH 4/5] cli: add global option "--uuid"

2015-08-10 Thread David Bremner
Daniel Schoepe writes: > Based on quick experiments, it seems that the revisions don't change > when compacting the database; is this something that the patches > guarantee or a coincidence? Now that you mention it, I can see that despite essentially quoting the xapian docs, compacting might

[PATCH 4/5] cli: add global option "--uuid"

2015-08-10 Thread Daniel Schoepe
On Sun, 09 Aug 2015 11:24+0200, David Bremner wrote: > +``--uuid=HEX`` > + Enforce that the database UUID (a unique identifier which > + persists until e.g. the database is compacted) > + is HEX; exit with an error if it is not. This is useful to > + detect rollover in

[Bug] Force creating of Mail/sent on sending?

2015-08-10 Thread Bastien Guerry
Hi David, David Bremner writes: > I think this is finally fixed in notmuch master. The workaround should > continue to work, but I thought you might like to know your bug report > was not in vain ;). Thanks a lot :) -- Bastien

[PATCH] build: extract library versions from notmuch.h

2015-08-10 Thread Tomi Ollila
On Sun, Aug 09 2015, David Bremner wrote: > - Make lib/notmuch.h the canonical location for the library versioning > information. > > - Since the release-check should never fail now, remove it to reduce > complexity. > > - Make the version numbers in notmuch.h consistent with the (now >

tags vs. show

2015-08-10 Thread David Bremner
Paul Tarvydas writes: > Specifics (linux mint, emacs 24.3.1): What version of notmuch? > I run this tagging query at the command line: > > > notmuch tag +xyz -- '(to:xyz at me.com or from:xyz at me.com or > > cc:xyz at me.com)' fwiw, cc: is not a valid search prefix, but I don't think that's

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

Re: [PATCH] configure: clean up messages around reading libnotmuch version

2015-08-10 Thread David Bremner
Jani Nikula jani.nik...@intel.com writes: From: Jani Nikula j...@nikula.org Clean up punctuation for consistency, and add newline for clean configure output. pushed, with thanks, d ___ notmuch mailing list notmuch@notmuchmail.org

Re: [PATCH 4/5] cli: add global option --uuid

2015-08-10 Thread Tomi Ollila
On Sun, Aug 09 2015, David Bremner da...@tethera.net wrote: The function notmuch_exit_if_unmatched_db_uuid is split from notmuch_process_shared_options because it needs an open notmuch database. --- doc/man1/notmuch.rst | 12 ++-- notmuch-client.h | 4

Re: [PATCH 4/5] cli: add global option --uuid

2015-08-10 Thread Daniel Schoepe
On Mon, 10 Aug 2015 13:32 +0200, David Bremner wrote: So compacting is in fact a bit of a strange case, it preserves the lastmod counters (because those are just terms on documents), but not the uuid. This means from notmuch point of view have no programmatic way to know that we can trust the

Re: [PATCH 4/5] cli: add global option --uuid

2015-08-10 Thread Daniel Schoepe
On Sun, 09 Aug 2015 11:24+0200, David Bremner wrote: +``--uuid=HEX`` + Enforce that the database UUID (a unique identifier which + persists until e.g. the database is compacted) + is HEX; exit with an error if it is not. This is useful to + detect rollover in

[PATCH] configure: clean up messages around reading libnotmuch version

2015-08-10 Thread Jani Nikula
From: Jani Nikula j...@nikula.org Clean up punctuation for consistency, and add newline for clean configure output. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index d1bcc20eb6c2..d28988036505 100755 --- a/configure +++ b/configure

Re: [Bug] Force creating of Mail/sent on sending?

2015-08-10 Thread Bastien Guerry
Hi David, David Bremner da...@tethera.net writes: I think this is finally fixed in notmuch master. The workaround should continue to work, but I thought you might like to know your bug report was not in vain ;). Thanks a lot :) -- Bastien ___

Re: [PATCH] build: extract library versions from notmuch.h

2015-08-10 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: Good idea. see below for 2 things. Thanks for the review. I pushed with your changes, plus deleting created files on the non-error path. d ___ notmuch mailing list notmuch@notmuchmail.org