Changeset a446829 in github
- Timestamp:
- Apr 15, 2010 8:21:03 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- a4c163f
- Parents:
- 633a106
- File:
-
- 1 edited
-
program/include/rcube_imap.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_imap.php
r70318e5 ra446829 2542 2542 function list_unsubscribed($root='') 2543 2543 { 2544 static $ sa_unsubscribed;2545 2546 if (is_array($ sa_unsubscribed))2547 return $ sa_unsubscribed;2544 static $a_folders; 2545 2546 if (is_array($a_folders)) 2547 return $a_folders; 2548 2548 2549 2549 // retrieve list of folders from IMAP server … … 2552 2552 // modify names with root dir 2553 2553 foreach ($a_mboxes as $mbox_name) { 2554 $name = $this->mod_mailbox($mbox_name, 'out'); 2555 if (strlen($name)) 2554 if ($name = $this->mod_mailbox($mbox_name, 'out')) 2556 2555 $a_folders[] = $name; 2557 2556 } 2558 2557 2559 2558 // filter folders and sort them 2560 $ sa_unsubscribed= $this->_sort_mailbox_list($a_folders);2561 return $ sa_unsubscribed;2559 $a_folders = $this->_sort_mailbox_list($a_folders); 2560 return $a_folders; 2562 2561 } 2563 2562 … … 3534 3533 $a_defaults[$p] = $folder; 3535 3534 else 3536 $folders[$folder] = mb_strtolower(rcube_charset_convert($folder, 'UTF7-IMAP'));3535 $folders[$folder] = rcube_charset_convert($folder, 'UTF7-IMAP'); 3537 3536 } 3538 3537
Note: See TracChangeset
for help on using the changeset viewer.
