Tags with spaces

Austin Clements amdragon at MIT.EDU
Fri Dec 7 22:27:56 PST 2012


Quoth Tomi Ollila on Dec 08 at  8:21 am:
> On Sat, Dec 08 2012, "Jason A. Donenfeld" <Jason at zx2c4.com> wrote:
> 
> > Do we support them? Are we going to?
> >
> > This doesn't work:
> > notmuch search -tag:"This has spaces"
> >
> > Nor does:
> > notmuch search "-tag:This has spaces"
> 
> This might work:
> 
> notmuch search "-tag:'This has spaces'"

Xapian's query parser doesn't recognize single quotes, unfortunately.

When in doubt,

$ NOTMUCH_DEBUG_QUERY=1 notmuch search '-tag:"This tag has spaces"'
Final query is:
Xapian::Query((Tmail AND 0 * KThis tag has spaces))

$ NOTMUCH_DEBUG_QUERY=1 notmuch search "-tag:'This tag has spaces'"
Final query is:
Xapian::Query((Tmail AND ((Ztag:(pos=1) AND Zhas:(pos=2) AND Zspace:(pos=3)) AND_NOT K'This)))


More information about the notmuch mailing list