[prev] [thread] [next] [lurker] [Date index for 2004/04/03]
Author: richardc Date: 2004-04-03 10:29:37 +0100 (Sat, 03 Apr 2004) New Revision: 1496 Modified: trunk/mariachi/lib/Mariachi/Message.pm Log: doh - non-multipart messages don't have a content_type Modified: trunk/mariachi/lib/Mariachi/Message.pm =================================================================== --- trunk/mariachi/lib/Mariachi/Message.pm 2004-04-02 09:05:42 UTC (rev 1495) +++ trunk/mariachi/lib/Mariachi/Message.pm 2004-04-03 09:29:37 UTC (rev 1496) @@ -41,7 +41,9 @@ # save the non-html attachments and present them in some way my $body; for ($mail->parts) { - if ($_->content_type =~ m{^text/plain\b}) { + my $type = $_->content_type; + + if (!$type || $type =~ m{^text/plain\b}) { $body .= $_->body; } else {
Generated at 13:57 on 01 Jul 2004 by mariachi 0.52