Changeset 1883 for branches/2.0


Ignore:
Timestamp:
12/22/09 13:52:20 (14 years ago)
Author:
niltonneto
Message:

Ticket #2 - Corrigido problema na leitura de determinados emails.

Location:
branches/2.0/expressoMail1_2/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/expressoMail1_2/inc/class.imap_functions.inc.php

    r1828 r1883  
    793793                                                                $content .= "<tr><td><b>".$this->functions->getLang("TO").":</b></td><td>".$this->decode_string($obj->to[0]->mailbox."@".$obj->to[0]->host)."</td></tr>"; 
    794794                                                                $content .= !$obj->cc ? "</table><br>" :"<tr><td><b>".$this->functions->getLang("CC").":</b></td><td>".$this->decode_string($obj->cc[0]->mailbox."@".$obj->cc[0]->host)."</td></tr></table><br>";                                                                
    795                                                                 $ix_part =      strtolower($attachment['type']) == "delivery-status" ? 1 : 0; 
    796                                                                 $content .= nl2br($this->decodeBody(imap_fetchbody($this->mbox, $msg_number, ($attachment['part_in_msg']+$ix_part).".1", FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]));                                                           
     795                                                                $content .= $this->decodeBody(  
     796                                                                imap_fetchbody(  
     797                                                                                $this->mbox,  
     798                                                                                $msg_number,  
     799                                                                                ( $attachment['part_in_msg'] + (  
     800                                                                                        ( strtolower( $attachment[ 'type' ] ) == 'delivery-status' ) ? 0 : 1 )  
     801                                                                                        ) . ".1",  
     802                                                                                        FT_UID  
     803                                                                                ),  
     804                                                                                $msg->encoding[ $msg_number ][ $values ],  
     805                                                                                $msg->charset[ $msg_number ][ $values ]  
     806                                                                );  
    797807                                                                break;                   
    798808                                                        } 
  • branches/2.0/expressoMail1_2/inc/class.message_components.inc.php

    r1059 r1883  
    112112                    $skip_next    = ($ftype == 'message/rfc822')?        true : false; 
    113113 
    114                     if ($ftype == 'multipart/mixed' || $skip_part == true && $ftype == 'multipart/alternative')                                  
    115                     //  Por niltonneto: Mensagens do ThunderBird com format=flowed nao abrem, por isso comentado essa condicao: 
    116                     //  || $ftype == 'multipart/related')                     
     114                    if ($ftype == 'multipart/mixed' || $skip_part == true && $ftype == 'multipart/alternative' || $ftype == 'multipart/related') 
    117115                    { 
    118116                        $n--; 
Note: See TracChangeset for help on using the changeset viewer.