From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Thu, 03 Sep 2009 11:39:58 -0700 Subject: [sup-talk] On making inbox-mode and search-results-mode more similar In-Reply-To: <1251327030-sup-7342@yoom.home.cworth.org> References: <1251323747-sup-1595@yoom.home.cworth.org> <1251327030-sup-7342@yoom.home.cworth.org> Message-ID: <1252003008-sup-8596@masanjin.net> Reformatted excerpts from Carl Worth's message of 2009-08-26: > Excerpts from Carl Worth's message of Wed Aug 26 15:24:36 -0700 2009: > > + text = BufferManager.ask :search, "refine query: ", "label:inbox > > -label:spam -label:deleted -label:killed " > > Is that even the right syntax for searching for threads with the inbox > label but excluding threades with the spam, deleted, or killed labels? Instead of -label:killed, you want to specify :skip_killed to #load_thread. Killed messages require special semantics. > I took a guess at the syntax and I thought I saw it working, but it > doesn't appear to be now. Can someone tell me the actual syntax? (Or > better, is there a writeup somewhere of the general search syntax > accepted by sup?) There is not a consistent one, though there might be something useful on the wiki. The general answer is, whatever Ferret/Xapian supports, plus the tweaks in #parse_query. -- William