]> git.notmuchmail.org Git - sup/commitdiff
re-added loading the header when viewing a message, such that the mailing list
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 02:35:12 +0000 (02:35 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 5 Jan 2007 02:35:12 +0000 (02:35 +0000)
headers (which are not stored in the index) can be captured so that we can
reply to list.

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

lib/sup/message.rb

index 41f3834e614b73440500ab8af72c0bc0088a65cb..b4a2749e45fb881e1696e5629cc8140cf85c9c1d 100644 (file)
@@ -177,7 +177,13 @@ class Message
         [Text.new(error_message(@source.broken_msg.split("\n")))]
       else
         begin
-#          read_header @source.load_header(@source_info) ##XXXX is this ok?
+          ## we need to re-read the header because it contains information
+          ## that we don't store in the index. actually i think it's just
+          ## the mailing list address (if any), so this is kinda overkill.
+          ## i could just store that in the index, but i think there might
+          ## be other things like that in the future, and i'd rather not
+          ## bloat the index.
+          read_header @source.load_header(@source_info)
           message_to_chunks @source.load_message(@source_info)
         rescue SourceError, SocketError, MessageFormatError => e
           [Text.new(error_message(e.message))]