<?xml version="1.0" encoding="windows-1252"?>
<node id="1013887" title="Re^4: MIME::Parser parse_data" created="2013-01-17 15:42:43" updated="2013-01-17 15:42:43">
<type id="11">
note</type>
<author id="998563">
boosth</author>
<data>
<field name="doctext">
The issue appears to be that this call:

&lt;code&gt;
    my $tmpMessage = $parser-&gt;parse_data($body);
&lt;/code&gt;

Is returning decoded strings for some emails but not for others.

Some of the emails require the output of this call:

&lt;code&gt;
       $tmp_part-&gt;bodyhandle-&gt;as_string;
&lt;/code&gt;

 to be decoded manually and others do not.

I don't understand why sometimes this call 

&lt;code&gt;
     $tmp_part-&gt;bodyhandle-&gt;as_string;
&lt;/code&gt;

Returns a  human readable decoded string on some emails with base64 encoding but not on all emails with base64 encoding. This is a headache for me because if I change the code to just output the string it breaks on emails that need the string manually decoded.

All I am doing is calling "parse_data" and then "bodyhandle-&gt;as_string". I'm not sure where the decoding process happens. The original data is definitely base64 encoded which I can see by looking at the raw email data.




</field>
<field name="root_node">
1013820</field>
<field name="parent_node">
1013851</field>
</data>
</node>
