I managed to extract the RTF part from an Outlook .msg using Email::Outlook::Message. Here's how it looks:
{\*\htmltag84 <b>}\htmlrtf {\b \htmlrtf0
{\*\htmltag148 <span lang="EN-US" style="font-size:12.0pt;color:#002060;mso-fareast-language:EN-IN">}\htmlrtf {\lang1033 \htmlrtf0 FooBar
{\*\htmltag156 </span>}\htmlrtf }\htmlrtf0
{\*\htmltag92 </b>}\htmlrtf }\htmlrtf0
When Outlooks sends an Internet Mail it converts the RTF to text/html:
<b><span style="font-size:12.0pt;color:#002060;mso-fareast-language:EN-IN">FooBar</span></b>
I'm trying to do the same using RTF::HTML::Converter, but it strips all styling:
<b>FooBar</b>
Here's the script:
use strict;
use RTF::HTML::Converter;
my $object = RTF::HTML::Converter->new(
output => \*STDOUT
);
local *RTF_FILE;
open RTF_FILE, "$ARGV[0]" or die $!;
$object->parse_stream( \*RTF_FILE );
I also tried the unrtf tool. It also strips the styles:
<font face="Arial"><font size="3"><b>FooBar</b></font></font>