summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-09 11:26:06 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-11-09 11:26:06 +0000
commit0002efbf67a3e53da53e5c7091439508649aab20 (patch)
tree8e94fd46fc125aa82f60dc1d027c1e48fe86f432 /plugins
parent567160270d8c25ef9b56596eb42cdffc1347234a (diff)
Always select the right mailbox before listing headers
git-svn-id: https://svn.roundcube.net/trunk@4201 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/kolab_addressbook/kolab_addressbook.php2
-rw-r--r--plugins/kolab_addressbook/rcube_kolab_contacts.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/kolab_addressbook/kolab_addressbook.php b/plugins/kolab_addressbook/kolab_addressbook.php
index da4f56ae7..c20b3dd94 100644
--- a/plugins/kolab_addressbook/kolab_addressbook.php
+++ b/plugins/kolab_addressbook/kolab_addressbook.php
@@ -65,7 +65,7 @@ class kolab_addressbook extends rcube_plugin
else {
foreach ($this->folders as $c_folder) {
// create instance of rcube_contacts
- $abook_id = strtolower(asciiwords(strtr($c_folder->name, '/', '-')));
+ $abook_id = strtolower(asciiwords(strtr($c_folder->name, '/.', '--')));
$abook = new rcube_kolab_contacts($c_folder->name);
$this->sources[$abook_id] = $abook;
diff --git a/plugins/kolab_addressbook/rcube_kolab_contacts.php b/plugins/kolab_addressbook/rcube_kolab_contacts.php
index f52512d27..d601ae16b 100644
--- a/plugins/kolab_addressbook/rcube_kolab_contacts.php
+++ b/plugins/kolab_addressbook/rcube_kolab_contacts.php
@@ -53,7 +53,6 @@ class rcube_kolab_contacts extends rcube_addressbook
if (in_array($this->imap_folder, $folders)) {
$this->_imap->set_pagesize(9999);
- $this->_imap->set_mailbox($this->imap_folder);
$this->ready = true;
}
}
@@ -153,6 +152,7 @@ class rcube_kolab_contacts extends rcube_addressbook
$xml_list = Horde_Kolab_Format_XML::factory('distributionlist');
$index = 0;
+ $this->_imap->set_mailbox($this->imap_folder);
$headers = $this->_imap->list_headers();
foreach ($headers as $header) {
if ($type = $header->others['x-kolab-type']) {