commit a558b1c7e112107414088f5a55afbde762c18dcb
parent 7eb4665b0973f3bada55029a5d74a052014e7993
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sat, 26 Sep 2009 07:09:09 -0700
bugfix: wrong # args for enclosedmessage without body
Another bugfix thanks to Carl Worth.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -453,7 +453,8 @@ 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, "")]
+ debug "no body for message/rfc822 enclosure; skipping"
+ []
end
else
filename =