From: Nicolas Pouillard Date: Mon, 29 Sep 2008 16:55:16 +0000 (+0200) Subject: Enclosed messages as proper sub-parts X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=1c2cef7a1c3ec811ee92b59b8e9f0b59c9b6d308;p=sup Enclosed messages as proper sub-parts Raw message closed by default. In-lined sub-parts of the enclosed message. --- diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb index ba8b846..7eabcdf 100644 --- 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 index 2cf97c8..944dd88 100644 --- 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