From: Jeff Balogh Date: Sat, 31 May 2008 15:52:54 +0000 (-0400) Subject: adding a reply-to hook for setting the default reply-to mode X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=abb697b09e87cd247f2bf6ff0105ec8f66f7ef53;p=sup adding a reply-to hook for setting the default reply-to mode --- diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb index e7b2929..de08609 100644 --- a/lib/sup/modes/reply-mode.rb +++ b/lib/sup/modes/reply-mode.rb @@ -19,6 +19,17 @@ Return value: A string containing the text of the quote line (can be multi-line) EOS + HookManager.register "reply-to", < types + @type_selector.set_to( - if @m.is_list_message? + if types.include? hook_reply + hook_reply + elsif @m.is_list_message? :list elsif @headers.member? :sender :sender