Re: [Patch v2] lib: regexp matching in 'subject' and 'from'

2017-01-18 Thread David Bremner
Jani Nikula writes: > I played around with this a bit, and it seemed to work. Unsurprisingly, > getting the quoting right was the hardest part. Even though I know how > the stuff works under the hood, it took me a while to realize that you > have to use 're:"subject:"' to make

Re: [Patch v2] lib: regexp matching in 'subject' and 'from'

2017-01-18 Thread Jani Nikula
On Mon, 14 Nov 2016, David Bremner wrote: > the idea is that you can run > > % notmuch search re:subject: > % notmuch search re:from:' > > or > > % notmuch search subject:"your usual phrase search" > % notmuch search from:"usual phrase search" > > This should also work with

Re: [PATCH] test: wrap 'wc -l' results in arithmetic evaluation to strip whitespace

2017-01-18 Thread Jani Nikula
On Thu, 05 Jan 2017, Tomi Ollila wrote: > Some new unwrapped 'wc -l's have been added since Jani's 60e79e3a9f1c8 LGTM > --- > > test/T070-insert.sh| 2 +- > test/T580-thread-search.sh | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH] notmuch-config: ENOENT vs generic handling when file open fails.

2017-01-18 Thread Jani Nikula
On Thu, 05 Jan 2017, Tomi Ollila wrote: > When opening configuration file fails, ENOENT (file not found) is > handled specially -- in setup missing file is ok (often expected), > and otherwise user can be informed to run notmuch setup. > > In any other case the the reason is

Re: [PATCH] lib: optimize counting documents

2017-01-18 Thread Jani Nikula
On Wed, 11 Jan 2017, David Bremner wrote: > From #xapian > > olly> bremner: btw, i noticed notmuch count see ms to request all the > documents and then ignores them > > bremner> hmm. There's something funny about the way that notmuch uses matches > in general iirc > > olly>