sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit b0d7364d6574e1b76337ce91f5926359834ef700
parent dfa70e1012e5290a5f970b6c7a957b33e87b7c4e
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Fri,  5 Jan 2007 02:35:12 +0000

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

Diffstat:
M lib/sup/message.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git 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))]