[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 > notmuch-c

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

[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 +++ b/configure @@ -324,7 +324,7

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

Re: [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 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

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

Re: [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 > notmuch-c

Re: [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. Th

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

[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

Re: [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 ___ notmuch mailing l

[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 +++ b/configure @@ -324,7 +324,7

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 t

Re: [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 ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/

Re: [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 not

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 m

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