lib/sup/modes/inbox-mode.rb in sup-0.2 vs lib/sup/modes/inbox-mode.rb in sup-0.3

- old
+ new

@@ -12,11 +12,13 @@ super [:inbox, :sent], { :label => :inbox, :skip_killed => true } raise "can't have more than one!" if defined? @@instance @@instance = self end - def is_relevant? m; m.has_label? :inbox; end + def is_relevant? m + m.has_label?(:inbox) && ([:spam, :deleted, :killed] & m.labels).empty? + end ## label-list-mode wants to be able to raise us if the user selects ## the "inbox" label, so we need to keep our singletonness around def self.instance; @@instance; end def killable?; false; end @@ -40,15 +42,9 @@ if contains_thread? t hide_thread t regen_text end end - -# not quite working, and not sure if i like it anyways -# def handle_unarchived_update sender, t -# Redwood::log "unarchived #{t.subj}" -# show_thread t -# end def status super + " #{Index.size} messages in index" end end