$structure= imap_fetchstructure($mbox, $newmsgnumber);
if ($structure->encoding == 4){$bodyhtml = quoted_printable_decode(imap_fetchbody($mbox, $newmsgnumber,1.2));}
elseif ($structure->encoding == 3){$bodyhtml = base64_decode(imap_fetchbody($mbox, $newmsgnumber,1.2));}
elseif ($structure->encoding == 0){$bodyhtml = quoted_printable_decode(imap_fetchbody($mbox, $newmsgnumber,1.2));}
Any suggestions?