]> git.notmuchmail.org Git - sup/commitdiff
ThreadIndexMode: handle spam updates
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 3 Feb 2008 04:18:48 +0000 (20:18 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 3 Feb 2008 04:18:48 +0000 (20:18 -0800)
lib/sup/modes/thread-index-mode.rb

index 0809d54b0b7a7346ce0415746b05050b376cca96..460de1fe4e24fabfb3f0a9342f3bd5ce4647b940 100644 (file)
@@ -173,6 +173,13 @@ EOS
     update
   end
 
+  def handle_spammed_update sender, m
+    t = @ts_mutex.synchronize { @ts.thread_for m }
+    return unless t
+    hide_thread t
+    update
+  end
+
   def handle_undeleted_update sender, m
     add_or_unhide m
   end