Changeset 6254


Ignore:
Timestamp:
05/21/12 16:02:11 (12 years ago)
Author:
natan
Message:

Ticket #2777 - Problemas ao mover/abrir pastas acentuadas no expressoMail

Location:
trunk
Files:
3 edited

Legend:

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

    r6243 r6254  
    162162        } 
    163163 
     164        function get_range_msgs3($params){ 
     165 
     166                $return = $this->get_range_msgs2($params); 
     167 
     168                $return['folder'] = mb_convert_encoding( $return['folder'], 'ISO_8859-1', 'UTF-8' ); 
     169 
     170                return $return; 
     171        } 
     172 
    164173        function get_range_msgs2($params) 
    165174        {        
     
    183192 
    184193            if(!$search_box_type || $search_box_type == 'UNSEEN' || $search_box_type == 'SEEN') { 
    185                     $msgs_info = imap_status($this->mbox,"{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".mb_convert_encoding( $folder, 'UTF7-IMAP', '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); 
    186195 
    187196                    $return['tot_unseen'] = ($search_box_type == 'SEEN') ? 0 : $msgs_info->unseen; 
  • trunk/expressoMail1_2/js/messages_controller.js

    r6088 r6254  
    2525                        draw_tree_local_folders(); 
    2626                }else { 
    27                         cExecute ("$this.imap_functions.get_range_msgs2&folder="+folder+"&msg_range_begin="+msg_range_begin+"&msg_range_end="+emails_per_page+"&sort_box_type="+sort_box_type+ "&search_box_type="+ search_box_type +"&sort_box_reverse="+sort_box_reverse+"", call_back); 
     27                        $.ajax({ 
     28                                url: "controller.php?" + $.param( {action: "$this.imap_functions.get_range_msgs3",  
     29                                                                    folder: folder,  
     30                                                                    msg_range_begin: msg_range_begin,  
     31                                                                    msg_range_end: emails_per_page,  
     32                                                                    sort_box_type: sort_box_type,  
     33                                                                    search_box_type: search_box_type,  
     34                                                                    sort_box_reverse: sort_box_reverse } ), 
     35 
     36                              success: function( data ){ 
     37                                    data = connector.unserialize(data); 
     38                                     
     39                                    if( data ) 
     40                                        call_back( data ); 
     41                              } 
     42                           
     43                        }); 
    2844                } 
    2945        } 
  • trunk/prototype/modules/mail/js/foldertree.js

    r6222 r6254  
    151151                selected = target.attr('id'); 
    152152                change_folder(target.attr('id'), child.attr('title'));   
    153                 var draw_shared_quota = function(data){ 
    154                         build_quota(data); 
    155                 }; 
    156                 cExecute ("$this.imap_functions.get_folders_list&folder="+target.attr('id'), draw_shared_quota); 
     153 
     154                $.ajax({ 
     155                          url : "controller.php?"+ $.param( { action: "$this.imap_functions.get_folders_list", folder: target.attr('id') } ), 
     156                          success : function(data){ 
     157                                  data = connector.unserialize(data); 
     158 
     159                                  if(data) 
     160                                    build_quota(data); 
     161                          } 
     162                }); 
     163 
    157164        }).filter('.followup-messages').click(function(event, ui){ 
    158165                search_emails("UNDELETED KEYWORD \"$Followupflagged\""); 
     
    270277                                 
    271278                                $.ajax({ 
    272                                         url : "controller.php?action=$this.imap_functions.move_folder&folder_to_move="+folder_to_move+"&folder_to="+folder_to, 
     279                                        url : "controller.php?"+ $.param( { action: "$this.imap_functions.move_folder", folder_to_move: folder_to_move, folder_to: folder_to } ), 
    273280                                        success : function(data){ 
    274281                                                data = connector.unserialize(data); 
Note: See TracChangeset for help on using the changeset viewer.