]> git.cworth.org Git - sup/commitdiff
forced reading of full headers so that reply-to-list functionality actually
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 16:53:44 +0000 (16:53 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 16:53:44 +0000 (16:53 +0000)
works

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@187 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/reply-mode.rb

index 5488a0d5db352a7022040bd7be1e2b7db814f727..84fed069a29c11c8974ac19f165af19d16d85c60 100644 (file)
@@ -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