diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-07-09 22:28:43 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-07-09 22:28:43 -0700 |
| commit | cc010a07023a2e278a5eac2835a971b2ae83b55f (patch) | |
| tree | 48f1b84a25bce8949d0a4eceb6e952407480eec1 /rt | |
| parent | dbeb313147d5bbe625d060183a49d24c9f4a4787 (diff) | |
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
Diffstat (limited to 'rt')
| -rw-r--r-- | rt/lib/RT/EmailParser.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
