From mboxrd@z Thu Jan 1 00:00:00 1970 From: its.jeff.balogh@gmail.com (Jeff Balogh) Date: Sat, 31 May 2008 11:52:54 -0400 Subject: [sup-talk] [PATCH] adding a reply-to hook for setting the default reply-to mode Message-ID: <1212248837-sup-4199@archie> --- Trying again, hopefully the docs are better now. If there's a better way to pretty-print the array, I'd be glad to know it. lib/sup/modes/reply-mode.rb | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) 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 -- 1.5.5.3