From 569654a8c350de5b34cb65ae561bf95418b15f1c Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 22 May 2009 18:34:50 +0000 Subject: - overwrite default_imap_folders according to *_mbox settings (#1485600) + some small updates --- installer/rcube_install.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'installer/rcube_install.php') diff --git a/installer/rcube_install.php b/installer/rcube_install.php index 14fe5ee47..89ebe9d89 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -176,6 +176,18 @@ class rcube_install else if ($prop == 'smtp_pass' && !empty($_POST['_smtp_user_u'])) { $value = '%p'; } + else if ($prop == 'default_imap_folders'){ + $value = Array(); + foreach($this->config['default_imap_folders'] as $_folder){ + switch($_folder) { + case 'Drafts': $_folder = $this->config['drafts_mbox']; break; + case 'Sent': $_folder = $this->config['sent_mbox']; break; + case 'Junk': $_folder = $this->config['junk_mbox']; break; + case 'Trash': $_folder = $this->config['trash_mbox']; break; + } + if (!in_array($_folder, $value)) $value[] = $_folder; + } + } else if (is_bool($default)) { $value = (bool)$value; } -- cgit v1.2.3