Changeset 4824


Ignore:
Timestamp:
07/19/11 16:03:33 (13 years ago)
Author:
roberto.santosjunior
Message:

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

File:
1 edited

Legend:

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

    r4819 r4824  
    19351935 
    19361936                                //$tmp_folder_id = explode("}", imap_utf7_decode($val->name)); 
    1937                                 $tmp_folder_id = explode("}", mb_convert_encoding($val->name, "ISO_8859-1", "UTF7-IMAP" )); 
    1938  
    1939                                 if($tmp_folder_id[1]=='INBOX'.$this->imap_delimiter.'decifradas') { 
    1940                                         //error_log('passou', 3,'/tmp/imap_get_list.log'); 
    1941                                         //imap_deletemailbox($mbox_stream,imap_utf7_encode("{".$this->imap_server."}".'INBOX/decifradas')); 
     1937                                $tmp_folder_id = explode("}", $val->name ); 
     1938 
     1939                                $folderUser = trim( strpos( $tmp_folder_id[1], $this->imap_delimiter , 5 ) ); 
     1940 
     1941                            $folderUser = trim( substr( $tmp_folder_id[1], 0, $folderUser ) ); 
     1942 
     1943                            $Permission = true; 
     1944 
     1945                            if( $folderUser != "INBOX" && $folderUser != "" ) 
     1946                            { 
     1947                               $Permission = imap_getacl( $mbox_stream, $folderUser ); 
     1948                            } 
     1949 
     1950                            if( $Permission ) 
     1951                            { 
     1952                                $tmp_folder_id[1] = mb_convert_encoding( $tmp_folder_id[1], "ISO-8859-1", "UTF7-IMAP" ); 
     1953 
     1954                                if( $tmp_folder_id[1]=='INBOX'.$this->imap_delimiter.'decifradas') 
     1955                                { 
    19421956                                        continue; 
    19431957                                } 
     
    19771991                                } 
    19781992 
    1979                                 $i++; 
    1980                         } 
     1993                            } 
     1994                            $i++; 
     1995                        } 
    19811996                } 
    19821997 
Note: See TracChangeset for help on using the changeset viewer.