Changeset 13 for trunk/expressoMail1_2/inc/class.message_components.inc.php
- Timestamp:
- 04/10/07 10:21:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.message_components.inc.php
r10 r13 127 127 $this->charset[$mid][$n] = $charset; 128 128 $this->fsize[$mid][$n] = (!isset($parts[$p]->bytes) || empty($parts[$p]->bytes))? 0 : $parts[$p]->bytes; 129 129 $hasAttachment = false; 130 130 # Force inline disposition if none is present 131 131 //if ($parts[$p]->ifdisposition == true) … … 144 144 { 145 145 $this->fname[$mid][$n] = $param->value; 146 $hasAttachment = true; 146 147 break; 147 } 148 } 148 149 } 149 150 } 150 151 151 152 // Alguns web-mails utilizam o parameters 152 if ($parts[$p]->ifparameters == true )153 if ($parts[$p]->ifparameters == true && !$hasAttachment) 153 154 { 154 155 $params = $parts[$p]->parameters; … … 170 171 if(strtolower($param->attribute) == 'charset'){ 171 172 if($this->charset[$mid][$n] == '') 172 $this->charset[$mid][$n] = $param->value; 173 $this->charset[$mid][$n] = $param->value; 173 174 } 174 175 } … … 224 225 } 225 226 226 $this->encoding[$mid][0] 227 $this->encoding[$mid][0] = $this->encoding_types[$this->structure[$mid]->encoding]; 227 228 if(!preg_match("/5./",phpversion())) 228 229 $this->charset[$mid][0] = $this->structure[$mid]->parameters[0]->value; … … 250 251 } 251 252 } 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 } 252 267 $this->disposition[$mid][0] = $this->structure[$mid]->disposition; 253 268 //$this->disposition[$mid][0] = 'inline';
Note: See TracChangeset
for help on using the changeset viewer.