From 1c510f7105e4ac076bb94a2568a1b64f08b1aacc Mon Sep 17 00:00:00 2001 From: wmorgan Date: Fri, 5 Jan 2007 16:53:44 +0000 Subject: [PATCH] forced reading of full headers so that reply-to-list functionality actually works git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@187 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/modes/reply-mode.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb index 5488a0d..84fed06 100644 --- a/lib/sup/modes/reply-mode.rb +++ b/lib/sup/modes/reply-mode.rb @@ -18,6 +18,11 @@ class ReplyMode < EditMessageMode super 2, :twiddles => false @m = message + ## it's important to put this early because it forces a read of + ## the full headers (most importantly the list-post header, if + ## any) + @body = reply_body_lines(message) + from = if @m.recipient_email AccountManager.account_for(@m.recipient_email) @@ -70,7 +75,7 @@ class ReplyMode < EditMessageMode @type_labels = REPLY_TYPES.select { |t| @headers.member?(t) } @selected_type = @m.is_list_message? ? :list : :sender - @body = reply_body_lines(message) + sig_lines + @body += sig_lines regen_text end -- 2.45.2