From mboxrd@z Thu Jan 1 00:00:00 1970 From: ezyang@MIT.EDU (Edward Z. Yang) Date: Fri, 05 Jun 2009 20:09:13 -0400 Subject: [sup-talk] Attempt at reply-from hook In-Reply-To: <1244208597-sup-4979@entry> References: <1243898254-sup-7513@javelin> <1243980495-sup-7229@cannonball> <1243997614-sup-7485@javelin> <1244029436-sup-6141@ntdws12.chass.utoronto.ca> <1244179379-sup-6675@javelin> <1244208597-sup-4979@entry> Message-ID: <1244246896-sup-4529@javelin> 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 at drspaceman:~/devel/sup$ sh devel/console.sh > [...] > >> Index.run_query "label:potato" > => [1000] > >> m = Index.build_message 1000 > => # > >> m.labels > => [:inbox, :unread, :potato] > >> m.has_label? :potato > => true > >> m.has_label? "potato" > => false Nice! Cheers, Edward