summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-09-30 15:22:08 +0000
committerthomascube <thomas@roundcube.net>2011-09-30 15:22:08 +0000
commite750d1b8164a7a1e584c77d3ef4113b4fcf3da39 (patch)
tree22fc98200ff75a7ac99de09f113ae424ce7f0f35 /program/steps
parentad27eb29727889a823dee8e855462a5fe0b90ab9 (diff)
Restrict folders list to write-only in selectors for special folders and save-message-to option
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc3
-rw-r--r--program/steps/settings/func.inc2
2 files changed, 3 insertions, 2 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index aac05be00..c31ec9b2b 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -1383,7 +1383,8 @@ function rcmail_store_target_selection($attrib)
$attrib['name'] = '_store_target';
$select = rcmail_mailbox_select(array_merge($attrib, array(
'noselection' => '- '.rcube_label('dontsave').' -',
- 'folder_filter' => 'mail'
+ 'folder_filter' => 'mail',
+ 'folder_rights' => 'w',
)));
return $select->show($_SESSION['compose']['param']['sent_mbox'], $attrib);
}
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index e6fd9109d..cb8b91881 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -676,7 +676,7 @@ function rcmail_user_prefs($current=null)
// load folders list only when needed
if ($current) {
$select = rcmail_mailbox_select(array('noselection' => '---', 'realnames' => true,
- 'maxlength' => 30, 'exceptions' => array('INBOX')));
+ 'maxlength' => 30, 'exceptions' => array('INBOX'), 'folder_filter' => 'mail', 'folder_rights' => 'w'));
}
else // dummy select
$select = new html_select();