]> git.cworth.org Git - sup/commitdiff
workaround for a rmail MIME parsing bug
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 4 Jan 2008 05:04:28 +0000 (21:04 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 4 Jan 2008 05:04:28 +0000 (21:04 -0800)
lib/sup/message.rb

index c3c69200a003df607dd4a2ffe6eed21bbb85ea8f..b342ea58390d27c0f339c0b33476f880ce62f167 100644 (file)
@@ -384,7 +384,7 @@ private
 
       ## otherwise, it's body text
       else
-        body = Message.convert_from m.decode, m.charset
+        body = Message.convert_from m.decode, m.charset if m.body
         text_to_chunks (body || "").normalize_whitespace.split("\n"), encrypted
       end
     end