Ticket #1083: desanexar.patch

File desanexar.patch, 807 bytes (added by niltonneto, 14 years ago)

Patch para corrigir desanexar em arquivo text/html

  • expressoMail1_2/inc/class.imap_functions.inc.php

     
    329329                        if ( (strtoupper($head1[0]) == "TO") ||  
    330330                                        (strtoupper($head1[0]) == "FROM") ||  
    331331                                        (strtoupper($head1[0]) == "SUBJECT") || 
    332                                         (strtoupper($head1[0]) == "DATE") ) 
    333                                 $header .= $head."\r\n"; 
     332                                        (strtoupper($head1[0]) == "DATE") || 
     333                                        (strtoupper($head1[0]) == "CONTENT-TYPE")) { 
     334                                         
     335                                if(strtoupper($head1[0]) == "CONTENT-TYPE"){ 
     336                                        $head = str_replace("multipart/mixed","text/html",$head);                        
     337                                } 
     338                                $header .= $head."\n"; 
     339                        } 
    334340                } 
    335341                                 
    336342                $msg = &new message_components($this->mbox);