Changeset 3922
- Timestamp:
- 03/28/11 15:05:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php
r3912 r3922 958 958 $content = ''; 959 959 $has_multipart = true; 960 $is_alternative = false; 960 961 $this->has_cid = false; 962 $alternative_content; 961 963 array_shift($return['signature']); 962 964 if (strtolower($msg->structure[$msg_number]->subtype) == "related") … … 964 966 965 967 if (strtolower($msg->structure[$msg_number]->subtype) == "alternative") { 968 $is_alternative = true; 966 969 $show_only_html = false; 967 970 foreach($msg->pid[$msg_number] as $values => $msg_part) { … … 1011 1014 else if($file_type == "text/html" && $msg->fsize[$msg_number][$values] < $max_size*3) 1012 1015 { 1013 $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 1014 $show_only_html = true; 1016 if ($is_alternative) 1017 { 1018 $alternative_content = $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 1019 } 1020 else 1021 { 1022 $content .= $this->decodeBody(imap_fetchbody($this->mbox, $msg_number, $msg_part, FT_UID), $msg->encoding[$msg_number][$values], $msg->charset[$msg_number][$values]); 1023 $show_only_html = true; 1024 } 1015 1025 } 1016 1026 } … … 1091 1101 } 1092 1102 } 1103 if ($is_alternative && !empty($alternative_content)) 1104 { 1105 $content .= $alternative_content; 1106 } 1093 1107 if($file_type == "text/plain" && ($show_only_html && $msg_part == 1) || (!$show_only_html && $msg_part == 3)){ 1094 1108 if(strtolower($msg->structure[$msg_number]->subtype) == "mixed" && $msg_part == 1)
Note: See TracChangeset
for help on using the changeset viewer.