From ecc99d3541a83375f2f6f224a04f30fd4df2b175 Mon Sep 17 00:00:00 2001 From: Marcus Williams Date: Thu, 10 Apr 2008 11:31:55 +0100 Subject: [PATCH] simple hook that runs when thread is marked as spam This hook adds the ability to configure further actions that take place when a user marks a thread as spam in sup. mark-as-spam ------------ File: $HOME/.sup/hooks/mark-as-spam.rb This hook is run when a thread is marked as spam Variables: thread: The message thread being marked as spam. --- lib/sup/modes/thread-index-mode.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index d4aedbc..e4dc5c4 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -14,6 +14,12 @@ Variables: thread: The message thread to be formatted. EOS + HookManager.register "mark-as-spam", < t) end ## both spam and deleted have the curious characteristic that you -- 2.45.2