]> git.cworth.org Git - sup/commitdiff
Fix message_to_chunks for the m.body == nil case.
authorCarl Worth <cworth@cworth.org>
Thu, 17 Sep 2009 19:53:27 +0000 (12:53 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 17 Sep 2009 19:54:52 +0000 (12:54 -0700)
The code was previously broken in calling EnclosedMessage.new with
only 2 instead of 5 arguments.

lib/sup/message.rb

index afa8f008f354d28802ca6f78062dd353032a11f3..579c1e597ee720b715508b2ea92418cddbee13a8 100644 (file)
@@ -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 =