Ignore:
Timestamp:
07/08/10 17:52:20 (14 years ago)
Author:
amuller
Message:

Ticket #1135 - Aplicando alterações do branches 2.0 no branches 2.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/class.message_components.inc.php

    r1739 r3018  
    112112                    $skip_next    = ($ftype == 'message/rfc822')?        true : false; 
    113113 
    114                     if ($ftype == 'multipart/mixed' || $skip_part == true && $ftype == 'multipart/alternative' || $ftype == 'multipart/related' ) 
     114                    if ($ftype == 'multipart/report' || $ftype == 'multipart/mixed' || $skip_part == true && $ftype == 'multipart/alternative' || ( $ftype == 'multipart/related' && strtolower( $parts[$p]->parts[0]->subtype ) == 'alternative' ) )  
    115115                    { 
    116116                        $n--; 
    117117                    } 
    118118                    else 
    119                     { 
    120                         $this->pid[$mid][$n]       = ($is_sub_part == false)? $i : ($sub_pid == '' ? '1' : $sub_pid).'.'.$i; 
     119                    { 
     120                        $this->pid[$mid][$n]       = ($is_sub_part == false || $skip_part && $ftype == 'multipart/related' )? $i : ($sub_pid == '' ? '1' : $sub_pid).'.'.$i;  
    121121                        $this->file_type[$mid][$n] = $ftype; 
    122122                        $this->encoding[$mid][$n]  = $encoding; 
Note: See TracChangeset for help on using the changeset viewer.