Re: [PATCH 4/4] lib: add 'body:' field, stop indexing headers twice.

2019-03-12 Thread David Bremner
David Bremner writes: > > Reindexing will be needed for negated 'body:' searches to work > correctly. I guess whether or not this needs a forced upgrade, there should still be a database feature defined (see feature_names in database.cc) ___ notmuch ma

v2. add body: / drop double indexing of headers

2019-03-12 Thread David Bremner
It turns out the that the database schema comments Matt referred to are pretty out of date, so the first 3 commits here are cleanup for that commentary, and could go in independently. ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.

[PATCH 2/4] lib: add clarification about the use of "prefix" in the docs.

2019-03-12 Thread David Bremner
--- lib/database.cc | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/database.cc b/lib/database.cc index fc42c4ba..f33f0af6 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -63,6 +63,12 @@ typedef struct { * We currently have three different types of documents (mail, ghost, *

[PATCH 4/4] lib: add 'body:' field, stop indexing headers twice.

2019-03-12 Thread David Bremner
The new `body:` field (in Xapian terms) or prefix (in slightly sloppier notmuch) terms allows matching terms that occur only in the body. Unprefixed query terms should continue to match anywhere (header or body) in the message. This follows a suggestion of Olly Betts to use the facility (since Xa

[PATCH 3/4] lib: update commentary about path/folder terms

2019-03-12 Thread David Bremner
We missed this when we changed to binary fields. --- lib/database.cc | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index f33f0af6..09ab9cb0 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -124,9 +124,11 @@ typedef struct { *

[PATCH 1/4] lib: drop comment about only indexing one file.

2019-03-12 Thread David Bremner
Although the situation is complicated by the value fields (which are taken from a single file), this comment is now more false than true. --- lib/database.cc | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/database.cc b/lib/database.cc index 9cf8062c..fc42c4ba 1006

Re: [PATCH] Add a configure flag to disable rpaths

2019-03-12 Thread David Bremner
Luis Ressel writes: > --- > configure | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) pushed, with updated commit message. d ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: how to search for hyphenated words? (was: how to search for Morse code?)

2019-03-12 Thread Gregor Zattler
Hi David, * David Bremner [2019-03-12; 07:41]: > Gregor Zattler writes: > > >> From: root@len.workgroup (Cron Daemon) >> Subject: Cron ~/bin/mailwiederdurchschleusen >> To: root@localhost >> Date: Fri, 29 Dec 2017 17:00:09 +0100 >> >> Date: Thu, 28 Dec 2017 21:04:52 -0500 >> From: Maxim Cournoye

Re: how to search for hyphenated words? (was: how to search for Morse code?)

2019-03-12 Thread Carl Worth
On Tue, Mar 12 2019, Gregor Zattler wrote: > what I do not understand is that it dosn't matter if I search for > > org-notmuch > > or > > "org-notmuch" > > '"org-notmuch"' > > or even > > org ADJ/1 notmuch Correct. All four of those forms are giving you phrase searches, (so a term "org" followed i

Re: [PATCH] build: sign tarball instead of sha256sum

2019-03-12 Thread David Bremner
David Bremner writes: > Adam Majer pointed out in [1] the way were signing releases was > unusual. Neither Carl nor I could think of a good reason for > explicitely signing the checksum (internally of course that's what GPG > is going anyway). It seemed unlikely that there would be much testing

Re: [PATCH] util: make remaining headers includable from C++

2019-03-12 Thread David Bremner
David Bremner writes: > libnotmuch_util.a is supposed to be usable from the library and the > CLI, but much the library is compiled as C++. Add in appropriate > wrapping to prevent symbol mangling. These wrappers already existed in > string-util.h; it seems better to be consistent. pushed, d __

Re: [PATCH 1/2] test/T030-config: Separate stdout and stderr output

2019-03-12 Thread David Bremner
Luis Ressel writes: > POSIX doesn't specify the flushing behaviour of the STDOUT stream, so > it's invalid to assume a particular order between the stdout and stderr > output. The current test breaks on musl due to this. Series pushed. Thanks for working through those changes with us. d ___

Re: how to search for hyphenated words? (was: how to search for Morse code?)

2019-03-12 Thread David Bremner
Gregor Zattler writes: > From: root@len.workgroup (Cron Daemon) > Subject: Cron ~/bin/mailwiederdurchschleusen > To: root@localhost > Date: Fri, 29 Dec 2017 17:00:09 +0100 > > Date: Thu, 28 Dec 2017 21:04:52 -0500 > From: Maxim Cournoyer > To: help-gnu-em...@gnu.org > Subject: Re: Gnus and ema

Re: how to search for hyphenated words? (was: how to search for Morse code?)

2019-03-12 Thread Gregor Zattler
Hi David, Matt, Carl, notmuch developers, * David Bremner [2019-03-11; 22:13]: > Matt Armstrong writes: >> Carl Worth writes: >>> The trick here is that when notmuch is indexing body text it feeds it >>> into a Xapian function that parses the text by finding "terms" in the >>> text. And this par