Ignore:
Timestamp:
04/10/07 10:21:10 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

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

    r10 r13  
    127127                                                $this->charset[$mid][$n]   = $charset; 
    128128                        $this->fsize[$mid][$n]     = (!isset($parts[$p]->bytes) || empty($parts[$p]->bytes))? 0 : $parts[$p]->bytes; 
    129  
     129                                                $hasAttachment = false; 
    130130                        # Force inline disposition if none is present 
    131131                        //if ($parts[$p]->ifdisposition == true) 
     
    144144                                        { 
    145145                                            $this->fname[$mid][$n] = $param->value; 
     146                                            $hasAttachment = true; 
    146147                                            break; 
    147                                         } 
     148                                        }                                         
    148149                                    } 
    149150                                } 
    150151                                 
    151152                                // Alguns web-mails utilizam o parameters 
    152                                 if ($parts[$p]->ifparameters == true) 
     153                                if ($parts[$p]->ifparameters == true && !$hasAttachment) 
    153154                                { 
    154155                                    $params = $parts[$p]->parameters; 
     
    170171                                        if(strtolower($param->attribute) == 'charset'){ 
    171172                                                if($this->charset[$mid][$n] == '') 
    172                                                         $this->charset[$mid][$n] = $param->value; 
     173                                                        $this->charset[$mid][$n] = $param->value;                                                
    173174                                        } 
    174175                                    } 
     
    224225                } 
    225226                 
    226                 $this->encoding[$mid][0]                = $this->encoding_types[$this->structure[$mid]->encoding]; 
     227                $this->encoding[$mid][0]              = $this->encoding_types[$this->structure[$mid]->encoding]; 
    227228                if(!preg_match("/5./",phpversion())) 
    228229                                        $this->charset[$mid][0] = $this->structure[$mid]->parameters[0]->value; 
     
    250251                                        } 
    251252                                } 
     253                                if (isset($this->structure[$mid]->ifparameters)) 
     254                                { 
     255                                        $params = $this->structure[$mid]->parameters; 
     256                                        $n = 0; 
     257                                        if($params) 
     258                                        foreach ($params as $param) 
     259                                        { 
     260                                                if(strtolower($param->attribute) == 'charset'){ 
     261                                if($this->charset[$mid][$n] == '') 
     262                                $this->charset[$mid][$n] = $param->value; 
     263                        } 
     264                                                $n++; 
     265                                        } 
     266                                } 
    252267                                $this->disposition[$mid][0] = $this->structure[$mid]->disposition; 
    253268                //$this->disposition[$mid][0] = 'inline'; 
Note: See TracChangeset for help on using the changeset viewer.