Changeset 4693


Ignore:
Timestamp:
07/11/11 13:25:23 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #2073 - Lista de pastas não é exibida na pesquisa avançada.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/expressoMail1_2/inc/class.imap_functions.inc.php

    r4683 r4693  
    18171817 
    18181818                                //$tmp_folder_id = explode("}", imap_utf7_decode($val->name)); 
    1819                                 $tmp_folder_id = explode("}", mb_convert_encoding($val->name, "ISO_8859-1", "UTF7-IMAP" )); 
    1820  
    1821                                 if($tmp_folder_id[1]=='INBOX'.$this->imap_delimiter.'decifradas') { 
    1822                                         //error_log('passou', 3,'/tmp/imap_get_list.log'); 
    1823                                         //imap_deletemailbox($mbox_stream,imap_utf7_encode("{".$this->imap_server."}".'INBOX/decifradas')); 
     1819                                $tmp_folder_id = explode("}", $val->name ); 
     1820 
     1821                                $folderUser = trim( strpos( $tmp_folder_id[1], $this->imap_delimiter , 5 ) ); 
     1822 
     1823                            $folderUser = trim( substr( $tmp_folder_id[1], 0, $folderUser ) ); 
     1824 
     1825                            $Permission = true; 
     1826 
     1827                            if( $folderUser != "INBOX" && $folderUser != "" ) 
     1828                            { 
     1829                               $Permission = imap_getacl( $mbox_stream, $folderUser ); 
     1830                            } 
     1831 
     1832                            if( $Permission ) 
     1833                            { 
     1834                                $tmp_folder_id[1] = mb_convert_encoding( $tmp_folder_id[1], "ISO-8859-1", "UTF7-IMAP" ); 
     1835 
     1836                                if( $tmp_folder_id[1]=='INBOX'.$this->imap_delimiter.'decifradas') 
     1837                                { 
    18241838                                        continue; 
    18251839                                } 
     
    18591873                                } 
    18601874 
    1861                                 $i++; 
    1862                         } 
     1875                            } 
     1876                            $i++; 
     1877                        } 
    18631878                } 
    18641879 
Note: See TracChangeset for help on using the changeset viewer.