]> git.notmuchmail.org Git - sup/commitdiff
Enclosed messages as proper sub-parts
authorNicolas Pouillard <nicolas.pouillard@gmail.com>
Mon, 29 Sep 2008 16:55:16 +0000 (18:55 +0200)
committerNicolas Pouillard <nicolas.pouillard@gmail.com>
Mon, 29 Sep 2008 17:28:23 +0000 (19:28 +0200)
Raw message closed by default.
In-lined sub-parts of the enclosed message.

lib/sup/message-chunks.rb
lib/sup/message.rb

index ba8b84641f294d3820896ddb53f06dd2169c76b9..7eabcdf042ad5f29bc5b9423ff7c66d6c16e4361 100644 (file)
@@ -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
index 2cf97c8ce482c69097d6b8f014d06ff0be6060c5..944dd88947207295e143fb3df1bf0c131ba83511 100644 (file)
@@ -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