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 <[email protected]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to