Reformatted excerpts from Edward Z. Yang's message of 2009-06-04: > The message.has_label? "mylabel" returns false, as the body of the if > statement never gets logged. (My contention is that the message very > clearly has that label, so wtf).
Try has_label? :mylabel. Sup represents labels as symbols instead of as strings. Sorry about that. The hook system is in need of much documentation. 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 HTH. -- William <wmorgan-...@masanjin.net> _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk