From cc010a07023a2e278a5eac2835a971b2ae83b55f Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 9 Jul 2012 22:28:43 -0700 Subject: [PATCH] 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 --- rt/lib/RT/EmailParser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1