Re: Database corruption after clean rebuild

2018-04-06 Thread David Bremner
Javier Garcia writes: > I can't build a healthy database for notmuch. My mail directory has > quite a few mails, around 20,000. > > $ rm -rf ~/.mail/.notmuch > $ notmuch new > $ xapian-check ~/.mail/.notmuch/xapian/ >> docdata: >> blocksize=8K items=63 firstunused=1

Database corruption after clean rebuild

2018-04-06 Thread Javier Garcia
I can't build a healthy database for notmuch. My mail directory has quite a few mails, around 20,000. $ rm -rf ~/.mail/.notmuch $ notmuch new $ xapian-check ~/.mail/.notmuch/xapian/ > docdata: > blocksize=8K items=63 firstunused=1 revision=2 levels=0 root=0 > B-tree checked okay > docdata table

Re: Xapian regex with parentheses fails

2018-04-06 Thread Javier Garcia
Fantastic, it works! Just as a suggestion, maybe this tip can be included in the man pages. Something on the lines of: Use *folder:"//"* in case the regex contains special characters interpretable by Xapian. Double escape as necesary. For instance: notmuch search 'folder:"/^.*/(Junk|Spam)$/"'

Re: [PATCH 1/2] cli: looking for config file in $XDG_CONFIG_HOME

2018-04-06 Thread Jani Nikula
On Thu, 15 Mar 2018, Daniel Kahn Gillmor wrote: > On Wed 2018-03-14 22:54:06 -0300, David Bremner wrote: >> There doesn't seem to be a good reason to drop ~/.notmuch-config >> completely here. As Tomi notes, that would break notmuch for all current >> users. I suppose I

Re: Xapian regex with parentheses fails

2018-04-06 Thread David Bremner
Javier Garcia writes: > Hi, > > I'm configuring notmuch in a multi-account directory. I want it to tag > spam and deleted mails using a post hook. Using regexes with parentheses > fails, or perhaps I misunderstood the documentation. The following one > liner replicates the

[PATCH] lib: work around xapian bug with get_mset(0,0, x)

2018-04-06 Thread David Bremner
At least Fedora28 triggers this Xapian bug due to some toolchain change . https://bugzilla.redhat.com/show_bug.cgi?id=1546162 The underlying bug is fixed in xapian commit f92e2a936c1592, and should be fixed in Xapian 1.4.6 --- I have verified this doesn't break the test suite in my

Re: 'notmuch search thread:<>' lists multiple threads

2018-04-06 Thread Naveen N. Rao
Naveen N. Rao wrote: Greetings-- If I search for threads matching a specific thread-id, I am seeing multiple results: $ notmuch search --output=threads thread:000c4d20 thread:000c4d1e thread:000c4d20 Expanding on this: [04/06 15:37:59 ~]$ notmuch search

'notmuch search thread:<>' lists multiple threads

2018-04-06 Thread Naveen N. Rao
Greetings-- If I search for threads matching a specific thread-id, I am seeing multiple results: $ notmuch search --output=threads thread:000c4d20 thread:000c4d1e thread:000c4d20 If I list the messages from both those threads, they do belong to the same original

Xapian regex with parentheses fails

2018-04-06 Thread Javier Garcia
Hi, I'm configuring notmuch in a multi-account directory. I want it to tag spam and deleted mails using a post hook. Using regexes with parentheses fails, or perhaps I misunderstood the documentation. The following one liner replicates the problem I face. $ notmuch search