Changeset 6f4e7db in github
- Timestamp:
- May 22, 2010 2:47:27 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 5183767
- Parents:
- 87a8685
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r87a8685 r6f4e7db 2 2 =========================== 3 3 4 - Added list_mailboxes hook in rcube_imap::list_unsubscribed() (#1486668) 4 5 - Fix wrong message on file upload error (#1486725) 5 6 - Add support for data URI scheme [RFC2397] (#1486740) -
program/include/rcube_imap.php
r9d5c834 r6f4e7db 2513 2513 2514 2514 /** 2515 * Public method for mailbox listing.2515 * Public method for listing subscribed folders 2516 2516 * 2517 2517 * Converts mailbox name with root dir first … … 2553 2553 private function _list_mailboxes($root='', $filter='*') 2554 2554 { 2555 $a_defaults = $a_out = array();2556 2557 2555 // get cached folder list 2558 2556 $a_mboxes = $this->get_cache('mailboxes'); … … 2560 2558 return $a_mboxes; 2561 2559 2560 $a_defaults = $a_out = array(); 2561 2562 2562 // Give plugins a chance to provide a list of mailboxes 2563 2563 $data = rcmail::get_instance()->plugins->exec_hook('list_mailboxes', 2564 array('root' =>$root,'filter'=>$filter));2564 array('root' => $root, 'filter' => $filter, 'mode' => 'LSUB')); 2565 2565 2566 2566 if (isset($data['folders'])) { … … 2586 2586 * 2587 2587 * @param string IMAP root dir 2588 * @param string Optional filter for mailbox listing 2588 2589 * @return array Indexed array with folder names 2589 2590 */ 2590 function list_unsubscribed($root='') 2591 { 2592 static $a_folders; 2593 2594 if (is_array($a_folders)) 2595 return $a_folders; 2596 2597 // retrieve list of folders from IMAP server 2598 $a_mboxes = $this->conn->listMailboxes($this->mod_mailbox($root), '*'); 2591 function list_unsubscribed($root='', $filter='*') 2592 { 2593 // Give plugins a chance to provide a list of mailboxes 2594 $data = rcmail::get_instance()->plugins->exec_hook('list_mailboxes', 2595 array('root' => $root, 'filter' => $filter, 'mode' => 'LIST')); 2596 2597 if (isset($data['folders'])) { 2598 $a_mboxes = $data['folders']; 2599 } 2600 else { 2601 // retrieve list of folders from IMAP server 2602 $a_mboxes = $this->conn->listMailboxes($this->mod_mailbox($root), $filter); 2603 } 2604 2605 $a_folders = array(); 2606 if (!is_array($a_mboxes)) 2607 $a_mboxes = array(); 2599 2608 2600 2609 // modify names with root dir
Note: See TracChangeset
for help on using the changeset viewer.
