diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-06 08:14:48 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-05-06 08:14:48 +0000 |
| commit | 138922495bf2a83821b778d094f4710365029cb1 (patch) | |
| tree | 45ab345d3853f7902347e76e5d1babb70903d21d /roundcubemail/program/steps | |
| parent | f65d3eac99ab06a32d2f15b5a9653ece8ae3dda9 (diff) | |
- Add possibility (for plugins) to filter folders lists by some additional criteria (e.g. folder type)
git-svn-id: https://svn.roundcube.net/trunk@4735 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/check_recent.inc | 2 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 5 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/getunread.inc | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/check_recent.inc b/roundcubemail/program/steps/mail/check_recent.inc index fc26d6387..c636e459b 100644 --- a/roundcubemail/program/steps/mail/check_recent.inc +++ b/roundcubemail/program/steps/mail/check_recent.inc @@ -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; diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index 531e698a8..4fe924409 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -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); } diff --git a/roundcubemail/program/steps/mail/getunread.inc b/roundcubemail/program/steps/mail/getunread.inc index 4ae7e05bc..27ae5f747 100644 --- a/roundcubemail/program/steps/mail/getunread.inc +++ b/roundcubemail/program/steps/mail/getunread.inc @@ -19,7 +19,7 @@ */ -$a_folders = $IMAP->list_mailboxes(); +$a_folders = $IMAP->list_mailboxes('', '*', 'mail'); if (!empty($a_folders)) { |
