Changeset 5175
- Timestamp:
- 11/14/11 14:00:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5172 r5175 2354 2354 $spam = $inbox . $this->imap_delimiter . $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultSpamFolder']; 2355 2355 $trash = $inbox . $this->imap_delimiter . $_SESSION['phpgw_info']['expressomail']['email_server']['imapDefaultTrashFolder']; 2356 2356 2357 if(array_key_exists('uid2cn', $_SESSION['phpgw_info']['user']['preferences']['expressoMail'] )) 2357 2358 $uid2cn = $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['uid2cn']; … … 2391 2392 $folderUser = trim( strpos( $tmp_folder_id[1], $this->imap_delimiter , 5 ) ); 2392 2393 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2394 $folderUser = trim( substr( $tmp_folder_id[1], 0, $folderUser ) ); 2395 2396 $Permission = true; 2397 2398 if( $folderUser != "INBOX" && $folderUser != "" ) 2399 { 2400 $Permission = @imap_getacl( $mbox_stream, $folderUser ); 2401 } 2402 $tmp_folder_id[1] = mb_convert_encoding( $tmp_folder_id[1], "ISO-8859-1", "UTF7-IMAP" ); 2403 2404 if( $tmp_folder_id[1]=='INBOX'.$this->imap_delimiter.'decifradas') 2405 { 2405 2406 continue; 2406 2407 } 2407 2408 2408 2409 if(isset($status->unseen)) 2409 $result[$i]['folder_unseen'] = $status->unseen;2410 $result[$i]['folder_unseen'] = $status->unseen; 2410 2411 2411 2412 $folder_id = $tmp_folder_id[1]; … … 2454 2455 default: 2455 2456 if($user[0] == $inbox) 2456 $resultMine[]=$result[$i];2457 $resultMine[]=$result[$i]; 2457 2458 else{ 2458 2459 if($aux != $user[1]){ … … 2463 2464 $resultSharedMine[$qtd] = array(); 2464 2465 $resultSharedMine[$qtd][]=$result[$i]; 2465 }2466 2467 2466 } 2467 2468 } 2468 2469 $i++; 2469 2470 } 2470 2471 } 2471 2472 … … 2497 2498 2498 2499 // Sorting resultDefault 2500 $resultDefault2 = array(); 2501 2499 2502 foreach ($resultDefault as $key => $folder_id) 2500 2503 { 2504 2501 2505 switch ($resultDefault[$key]['folder_id']) { 2502 2506 case $inbox: … … 2517 2521 } 2518 2522 } 2519 2523 //RE-ORDENA INDICES 2524 ksort($resultDefault2); 2520 2525 $shareds = array(); 2521 2526 if(!empty($resultSharedDefault)) … … 2549 2554 $resultSharedDefault2 = array(); 2550 2555 } 2556 ob_start(); 2557 print_r( "=== LOG BEGIN ===" . "\n" ); 2558 print_r( "resultDefault2 : " . "\n" ); 2559 print_r( var_export($resultDefault2) . "\n" ); 2560 $output = ob_get_clean(); 2561 file_put_contents( '/tmp/log-gustavo2.txt', file_get_contents( '/tmp/log-gustavo2.txt' ) . $output ); 2551 2562 if ( $params && isset($params['folderType']) && $params['folderType'] == 'default' ) 2552 2563 return array_merge($resultDefault2, $arr_quota_info);
Note: See TracChangeset
for help on using the changeset viewer.