This way, tagging a whole bunch of spam and then hitting =S will get them all run through bogofilter (or whatever is done in the mark-as-spam hook) instead of only the currently selected one. --- lib/sup/modes/thread-index-mode.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 12a76f9..9e49415 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -406,7 +406,6 @@ EOS def toggle_spam t = cursor_thread or return multi_toggle_spam [t] - HookManager.run("mark-as-spam", :thread => t) end ## both spam and deleted have the curious characteristic that you @@ -418,6 +417,7 @@ EOS ## you also want them to disappear immediately. def multi_toggle_spam threads undos = threads.map { |t| actually_toggle_spammed t } + threads.each { |t| HookManager.run("mark-as-spam", :thread => t) } UndoManager.register "marking/unmarking #{threads.size.pluralize 'thread'} as spam", undos, lambda { regen_text } regen_text -- 1.6.5 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel