From: Carl Worth Date: Thu, 17 Sep 2009 19:53:27 +0000 (-0700) Subject: Fix message_to_chunks for the m.body == nil case. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=93ed1a68e1b4321b62bfd15600b04d3adb6f7c57;hp=e127eef693956080b06bc8c0157071aa0c8549cb;p=sup Fix message_to_chunks for the m.body == nil case. The code was previously broken in calling EnclosedMessage.new with only 2 instead of 5 arguments. --- diff --git a/lib/sup/message.rb b/lib/sup/message.rb index afa8f00..579c1e5 100644 --- a/lib/sup/message.rb +++ b/lib/sup/message.rb @@ -453,7 +453,7 @@ private cc_people = cc ? Person.from_address_list(cc) : nil [Chunk::EnclosedMessage.new(from_person, to_people, cc_people, msgdate, subj)] + message_to_chunks(payload, encrypted) else - [Chunk::EnclosedMessage.new(nil, "")] + [] end else filename =