[PATCH 2/2] cli: reset db directory mtime upon directory removal

2015-09-05 Thread Jani Nikula
The library does not have a function to remove a directory document for a path. Usually this doesn't matter except for a slight waste of space. However, if the same directory gets added to the filesystem again, the old directory document is found with the old mtime. Reset the directory mtime on

[PATCH 1/2] HACK: test: test folder renames

2015-09-05 Thread Jani Nikula
On Sun, 23 Feb 2014, Mark Walters wrote [1]: > I was experimenting with letting notmuch new take an argument to tell it > to scan only a particular directory (and sub-directories) for new > messages. I came across the following strange behaviour which is also > present

Re: [PATCH 1/1] Store and search for canonical Unicode text [WIP]

2015-09-05 Thread Rob Browning
Rob Browning writes: > David Bremner writes: >> It seems plausible to specify UTF-8 input for the library, but what >> about the CLI? It seems like the canonicalization operation increases >> the chance of mangling user input in non-UTF-8 locales. > >

Re: [PATCH v2] emacs: wrap current search in parens when filtering

2015-09-05 Thread David Bremner
Some pretty fussy comments follow. Probably I could have fixed these in the time it took to write this message ;). Uli Scholler writes: > + (let ((grouped-query (notmuch-maybe-group-query-string query)) > + (grouped-search-query (notmuch-maybe-group-query-string >