Re: Xapian regex with parentheses fails

Subject: Re: Xapian regex with parentheses fails

Date: Fri, 06 Apr 2018 12:36:11 -0300

To: Javier Garcia, notmuch@notmuchmail.org

Cc:

From: David Bremner


Javier Garcia <javiertury@gmail.com> 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 problem I face.
>
> $ notmuch search 'folder:/^.*/(Junk|Spam)$/'
> notmuch search: A Xapian exception occurred
> A Xapian exception occurred parsing query: unmatched regex delimiter in
> '/^.*/(Junk|Spam'
> Query string was: folder:/^.*/(Junk|Spam)$/

Try

 notmuch search 'folder:"/^.*/(Junk|Spam)$/"'
 
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: