#718 closed defect (fixed)
outlookmsg2html aborts with a rfc822 part
Reported by: | Emanuel Reisinger | Owned by: | Olly Betts |
---|---|---|---|
Priority: | normal | Milestone: | 1.2.21 |
Component: | Omega | Version: | 1.2.16 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Operating System: | All |
Description
If a mail contains a part with Content-Type rfc822, then outlookmsg2html aborts with following error:
Can't call method "content_type" on an undefined value at outlookmsg2html.pl line 43
Suggestion to fix it
Add if defined $e to following line in outlookmsg2html.in::handle_mimepart:
my ($type, $sub) = ((lc $e->content_type) =~ m,^(.*?)/(.*?)(?:;.*)?$,) if defined $e;
Attachments (1)
Change History (3)
by , 9 years ago
Attachment: | outlookmsg2html_Testmail_2.msg added |
---|
comment:1 by , 9 years ago
Component: | Other → Omega |
---|---|
Milestone: | → 1.2.21 |
Priority: | high → normal |
Resolution: | → fixed |
Severity: | critical → normal |
Status: | new → closed |
Thanks for your report.
This was actually already fixed in 1.2.21 - from the NEWS file:
Omega 1.2.21 (2015-05-20): [...] + outlookmsg2html: Fix handling of message/rfc822 subparts.
The output for your example file is now:
<pre>Mail in mail. BR </pre> <pre>Hello all, This is a testmail. BR Hui Pui </pre>
Those BR
look suspect, but that's what we get from the Email::Outlook::Message
perl module, so if they are not literally in the message that looks like a bug in the perl module.
Note:
See TracTickets
for help on using tickets.
Testmail with a rfc822 part