mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-24 08:46:56 +01:00
- Add possibility (for plugins) to filter folders lists by some additional criteria (e.g. folder type)
This commit is contained in:
@@ -24,7 +24,7 @@ $check_all = !empty($_GET['_refresh']) || (bool)$RCMAIL->config->get('check_all_
|
||||
|
||||
// list of folders to check
|
||||
if ($check_all) {
|
||||
$a_mailboxes = $IMAP->list_mailboxes();
|
||||
$a_mailboxes = $IMAP->list_mailboxes('', '*', 'mail');
|
||||
}
|
||||
else {
|
||||
$a_mailboxes = (array) $current;
|
||||
|
||||
@@ -1297,7 +1297,10 @@ function rcmail_editor_selector($attrib)
|
||||
function rcmail_store_target_selection($attrib)
|
||||
{
|
||||
$attrib['name'] = '_store_target';
|
||||
$select = rcmail_mailbox_select(array_merge($attrib, array('noselection' => '- '.rcube_label('dontsave').' -')));
|
||||
$select = rcmail_mailbox_select(array_merge($attrib, array(
|
||||
'noselection' => '- '.rcube_label('dontsave').' -',
|
||||
'folder_filter' => 'mail'
|
||||
)));
|
||||
return $select->show($_SESSION['compose']['param']['sent_mbox'], $attrib);
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
*/
|
||||
|
||||
$a_folders = $IMAP->list_mailboxes();
|
||||
$a_folders = $IMAP->list_mailboxes('', '*', 'mail');
|
||||
|
||||
if (!empty($a_folders))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user