sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 1c2cef7a1c3ec811ee92b59b8e9f0b59c9b6d308
parent 8ef2a88cc8ce5efa037ca7389e103adba53e5ea6
Author: Nicolas Pouillard <nicolas.pouillard@gmail.com>
Date:   Mon, 29 Sep 2008 18:55:16 +0200

Enclosed messages as proper sub-parts

Raw message closed by default.
In-lined sub-parts of the enclosed message.

Diffstat:
M lib/sup/message-chunks.rb | 2 +-
M lib/sup/message.rb | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb
@@ -206,7 +206,7 @@ EOS
     def inlineable?; false end
     def quotable?; false end
     def expandable?; true end
-    def initial_state; :open end
+    def initial_state; :closed end
     def viewable?; false end
 
     def patina_color; :generic_notice_patina_color end
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -392,7 +392,8 @@ private
       payload = RMail::Parser.read(m.body)
       from = payload.header.from.first
       from_person = from ? PersonManager.person_for(from.format) : nil
-      [Chunk::EnclosedMessage.new(from_person, payload.to_s)]
+      [Chunk::EnclosedMessage.new(from_person, payload.to_s)] +
+        message_to_chunks(payload, encrypted)
     else
       filename =
         ## first, paw through the headers looking for a filename