- Timestamp:
- 06/22/12 12:35:23 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r6536 r6576 166 166 $return = $this->get_range_msgs2($params); 167 167 168 $return['folder'] = mb_convert_encoding( $return['folder'], 'ISO _8859-1', 'UTF-8' );168 $return['folder'] = mb_convert_encoding( $return['folder'], 'ISO-8859-1', 'UTF-8' ); 169 169 170 170 return $return; … … 192 192 193 193 if(!$search_box_type || $search_box_type == 'UNSEEN' || $search_box_type == 'SEEN') { 194 $msgs_info = imap_status($this->mbox,"{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".mb_convert_encoding( $folder, 'UTF7-IMAP', 'UTF-8, ISO _8859-1' ) ,SA_ALL);194 $msgs_info = imap_status($this->mbox,"{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".mb_convert_encoding( $folder, 'UTF7-IMAP', 'UTF-8, ISO-8859-1' ) ,SA_ALL); 195 195 196 196 $return['tot_unseen'] = ($search_box_type == 'SEEN') ? 0 : $msgs_info->unseen; … … 2770 2770 } 2771 2771 2772 $folder = mb_convert_encoding($folder, 'UTF7-IMAP', 'ISO _8859-1');2772 $folder = mb_convert_encoding($folder, 'UTF7-IMAP', 'ISO-8859-1'); 2773 2773 $folder = preg_replace('/INBOX[\/.]/i', 'INBOX' . $this->imap_delimiter, $folder); 2774 2774 $folder_name = $params['folder_name']; … … 2922 2922 if($att['disposition'] == 'embedded') 2923 2923 { 2924 $body = str_replace('"../prototype/getArchive.php?mailAttachment='.$att['id'].'"', $att['name'], $body);2924 $body = str_replace('"../prototype/getArchive.php?mailAttachment='.$att['id'].'"', '"'.mb_convert_encoding($att['name'], 'ISO-8859-1' , 'UTF-8,ISO-8859-1').'"', $body); 2925 2925 $mailService->addStringImage(base64_decode($att['source']), $att['type'], mb_convert_encoding($att['name'], 'ISO-8859-1' , 'UTF-8,ISO-8859-1')); 2926 2926 } … … 2941 2941 { 2942 2942 $body = str_ireplace('<img src="./inc/get_archive.php?msgFolder='.$value['folder'].'&msgNumber='.$value['uid'].'&indexPart='.$value['part'].'" />' , '<img src="'.$att['name'].'" />', $body); 2943 $mailService->addStringImage($att['source'], $att['type'],mb_convert_encoding($att['name'], 'ISO _8859-1' , 'UTF-8,ISO_8859-1') );2943 $mailService->addStringImage($att['source'], $att['type'],mb_convert_encoding($att['name'], 'ISO-8859-1' , 'UTF-8,ISO-8859-1') ); 2944 2944 } 2945 2945 else … … 3037 3037 $this->rfc2397ToEmbeddedAttachment($mailService , $body); 3038 3038 3039 require_once(dirname(__FILE__).'/../../library/CssToInlineStyles/css_to_inline_styles.php'); 3040 $defaultStyle = '.expressoDefaultFont{'; 3041 3039 $defaultStyle = ''; 3042 3040 if(isset($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_family_editor']) && $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_family_editor']) 3043 3041 $defaultStyle .= ' font-family:'.$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_family_editor'] .';'; … … 3045 3043 if(isset($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_size_editor']) && $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_size_editor']) 3046 3044 $defaultStyle .= ' font-size:'.$_SESSION['phpgw_info']['user']['preferences']['expressoMail']['font_size_editor'].';'; 3047 3048 $defaultStyle .= '}'; 3049 3050 $cssToInlineStyles = new CSSToInlineStyles('<span class="expressoDefaultFont">'.$body.'</span>'); 3051 $cssToInlineStyles->setUseInlineStylesBlock(true); 3052 $cssToInlineStyles->setCSS($defaultStyle); 3053 $cssToInlineStyles->setCleanup(TRUE); 3054 $body = $cssToInlineStyles->convert(); //Converte as tag style em inline styles 3055 unset($cssToInlineStyles); 3056 3045 3046 $body = '<span class="'.$defaultStyle.'">'.$body.'</span>'; 3057 3047 $mailService->setBodyHtml($body); 3058 3048 } … … 5019 5009 $quota_used = str_replace(")","",$size); 5020 5010 $quotaPercent = (($quota_used / 1024) / $data["quota_root"]["quota_limit"])*100; 5021 $folder = mb_convert_encoding($folder, "ISO _8859-1", "UTF7-IMAP");5011 $folder = mb_convert_encoding($folder, "ISO-8859-1", "UTF7-IMAP"); 5022 5012 if(!preg_match('/user\\'.$this->imap_delimiter.$this->username.'\\'.$this->imap_delimiter.'/i',$folder)){ 5023 5013 $folder = $this->functions->getLang("Inbox"); -
trunk/prototype/services/ImapServiceAdapter.php
r6566 r6576 629 629 if($att['disposition'] == 'embedded') 630 630 { 631 $body = str_replace('"../prototype/getArchive.php?mailAttachment='.$att['id'].'"', $att['name'], $body);631 $body = str_replace('"../prototype/getArchive.php?mailAttachment='.$att['id'].'"', '"'.mb_convert_encoding($att['name'], 'ISO-8859-1' , 'UTF-8,ISO-8859-1').'"', $body); 632 632 $mailService->addStringImage(base64_decode($att['source']), $att['type'], mb_convert_encoding($att['name'], 'ISO-8859-1' , 'UTF-8,ISO-8859-1')); 633 633 }
Note: See TracChangeset
for help on using the changeset viewer.