Skip to content
Browse files

uw-imap and dovecot fixes

git-svn-id: https://svn.php.net/repository/pear/packages/Net_IMAP/trunk@252424 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 74c64b8 commit 5fd4cf82f4537beecf2e5f3024e3d211f22f9808 Sebastian Ebling committed Feb 6, 2008
Showing with 9 additions and 9 deletions.
  1. +9 −9 IMAP.php
View
18 IMAP.php
@@ -1362,16 +1362,16 @@ function getMailboxes($reference = '', $restriction_search = 0, $returnAttribute
//If the folder has the \NoSelect atribute we don't put in the list
// it solves a bug in wu-imap that crash the IMAP server if we select that mailbox
- if( isset($mbox["EXT"]["LIST"]["NAME_ATTRIBUTES"]) ){
- if( !in_array('\NoSelect',$mbox["EXT"]["LIST"]["NAME_ATTRIBUTES"]) ){
- if( $returnAttributes){
- $ret_aux[]=array( 'MAILBOX' => $mbox["EXT"]["LIST"]["MAILBOX_NAME"],
- 'ATTRIBUTES' => $mbox["EXT"]["LIST"]["NAME_ATTRIBUTES"] ,
- 'HIERACHY_DELIMITER' => $mbox["EXT"]["LIST"]["HIERACHY_DELIMITER"] ) ;
- }else{
- $ret_aux[]=$mbox["EXT"]["LIST"]["MAILBOX_NAME"];
+ if (isset($mbox['EXT']['LIST']['NAME_ATTRIBUTES'])) {
+ // if (!in_array('\NoSelect', $mbox['EXT']['LIST']['NAME_ATTRIBUTES'])) {
+ if ($returnAttributes) {
+ $ret_aux[]=array('MAILBOX' => $mbox['EXT']['LIST']['MAILBOX_NAME'],
+ 'ATTRIBUTES' => $mbox['EXT']['LIST']['NAME_ATTRIBUTES'],
+ 'HIERACHY_DELIMITER' => $mbox['EXT']['LIST']['HIERACHY_DELIMITER']);
+ } else {
+ $ret_aux[] = $mbox['EXT']['LIST']['MAILBOX_NAME'];
}
- }
+ // }
}
}
}

0 comments on commit 5fd4cf8

Please sign in to comment.
Something went wrong with that request. Please try again.