Changeset 2844


Ignore:
Timestamp:
05/24/10 17:49:13 (14 years ago)
Author:
niltonneto
Message:

Ticket #1083 - Corrigido problema na mensagem após utilizar desanexar arquivo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r2829 r2844  
    366366                $headertemp = explode("\n",imap_fetchheader($this->mbox, imap_msgno($this->mbox, $params["msg_num"]))); 
    367367                foreach($headertemp as $head) {//Se eu colocar todo o header do email dá pau no append, então procuro apenas o que interessa. 
    368                         $head1 = explode(":",$head); 
    369                         if ( (strtoupper($head1[0]) == "TO") || 
    370                                         (strtoupper($head1[0]) == "FROM") || 
     368                $head1 = explode(":",$head); 
     369                        if ( (strtoupper($head1[0]) == "TO") ||  
     370                                        (strtoupper($head1[0]) == "FROM") ||  
    371371                                        (strtoupper($head1[0]) == "SUBJECT") || 
    372                                         (strtoupper($head1[0]) == "DATE") ) 
    373                                 $header .= $head."\r\n"; 
     372                                        (strtoupper($head1[0]) == "DATE") || 
     373                                        (strtoupper($head1[0]) == "CONTENT-TYPE")) { 
     374                                         
     375                                if(strtoupper($head1[0]) == "CONTENT-TYPE"){ 
     376                                        $head = str_replace("multipart/mixed","text/html",$head); 
     377                                } 
     378                                $header .= $head."\n"; 
     379                        } 
    374380                } 
    375381 
Note: See TracChangeset for help on using the changeset viewer.