From: wmorgan Date: Fri, 5 Jan 2007 02:35:12 +0000 (+0000) Subject: re-added loading the header when viewing a message, such that the mailing list X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b0d7364d6574e1b76337ce91f5926359834ef700;p=sup re-added loading the header when viewing a message, such that the mailing list 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 --- diff --git a/lib/sup/message.rb b/lib/sup/message.rb index 41f3834..b4a2749 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -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))]