Excerpts from William Morgan's message of Fri Jun 05 09:37:02 -0400 2009: > Try has_label? :mylabel. Sup represents labels as symbols instead of as > strings.
Great! My hook works now. This is the sort of functionality that I think is worth generalizing and implementing as a configuration twiddle (one, I think, that should be on by default.) > A good environment for playing around with this stuff is to run the console: > > w...@drspaceman:~/devel/sup$ sh devel/console.sh > [...] > >> Index.run_query "label:potato" > => [1000] > >> m = Index.build_message 1000 > => #<Redwood::Message:0x7f187b394ac8 [...]> > >> m.labels > => [:inbox, :unread, :potato] > >> m.has_label? :potato > => true > >> m.has_label? "potato" > => false Nice! Cheers, Edward _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk