diff options
author | alecpl <alec@alec.pl> | 2011-05-06 08:14:48 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-05-06 08:14:48 +0000 |
commit | 94bdcce081eb4b080fcaab74bc8466237c2dfcd4 (patch) | |
tree | d33924327064cc1eb69a49b1fe42f5a835bd3832 /program/steps | |
parent | de0a3f9b9f38c374dae043c25404bbb957ea448a (diff) |
- Add possibility (for plugins) to filter folders lists by some additional criteria (e.g. folder type)
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/check_recent.inc | 2 | ||||
-rw-r--r-- | program/steps/mail/compose.inc | 5 | ||||
-rw-r--r-- | program/steps/mail/getunread.inc | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index fc26d6387..c636e459b 100644 --- a/program/steps/mail/check_recent.inc +++ b/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/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 531e698a8..4fe924409 100644 --- a/program/steps/mail/compose.inc +++ b/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/program/steps/mail/getunread.inc b/program/steps/mail/getunread.inc index 4ae7e05bc..27ae5f747 100644 --- a/program/steps/mail/getunread.inc +++ b/program/steps/mail/getunread.inc @@ -19,7 +19,7 @@ */ -$a_folders = $IMAP->list_mailboxes(); +$a_folders = $IMAP->list_mailboxes('', '*', 'mail'); if (!empty($a_folders)) { |