From 94bdcce081eb4b080fcaab74bc8466237c2dfcd4 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 06 May 2011 04:14:48 -0400 Subject: [PATCH] - Add possibility (for plugins) to filter folders lists by some additional criteria (e.g. folder type) --- program/steps/mail/compose.inc | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 531e698..4fe9244 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -1297,7 +1297,10 @@ 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); } -- Gitblit v1.9.1