From: Ivan Kohler Date: Tue, 10 Jul 2012 05:28:43 +0000 (-0700) Subject: prevent RT::EmailParser::RescueOutlook from throwing a fatal error.. still better... X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=cc010a07023a2e278a5eac2835a971b2ae83b55f;p=freeside.git prevent RT::EmailParser::RescueOutlook from throwing a fatal error.. still better to accept the message anyway, even if it can't be rescued from Outlook --- diff --git a/rt/lib/RT/EmailParser.pm b/rt/lib/RT/EmailParser.pm index ef9f4bfc9..865c4a431 100644 --- a/rt/lib/RT/EmailParser.pm +++ b/rt/lib/RT/EmailParser.pm @@ -587,7 +587,7 @@ sub RescueOutlook { if ( $first && $first->head->get('Content-Type') =~ m{multipart/alternative} ) { my $inner_first = $first->parts(0); - if ( $inner_first->head->get('Content-Type') =~ m{text/plain} ) + if ( $inner_first && $inner_first->head->get('Content-Type') =~ m{text/plain} ) { $text_part = $inner_first; }