summaryrefslogtreecommitdiff
path: root/lib/kolab_sync_data_email.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-29 15:35:56 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-03-29 15:35:56 (GMT)
commite49982cb8e2e7a27d41acb58dc5234578af0bc50 (patch)
tree9a8ec75fb0b6e1daadc269080aee686e78e0d3a3 /lib/kolab_sync_data_email.php
parent502e6ee8414494fd47d3cc72538b9df196e4f555 (diff)
downloadkolab-syncroton-e49982cb8e2e7a27d41acb58dc5234578af0bc50.tar.gz
Code improvement, add support for multiple mail folders in Outlook 2013
Diffstat (limited to 'lib/kolab_sync_data_email.php')
-rw-r--r--lib/kolab_sync_data_email.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index f68609e..b696e54 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -103,6 +103,9 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
parent::__construct($device, $syncTimeStamp);
$this->storage = rcube::get_instance()->get_storage();
+
+ // Outlook 2013 support multi-folder
+ $this->ext_devices[] = 'windowsoutlook15';
}
/**
@@ -425,7 +428,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
}
// device doesn't support multiple folders
- if (!in_array(strtolower($this->device->devicetype), array('iphone', 'ipad', 'thundertine', 'windowsphone'))) {
+ if (!in_array(strtolower($this->device->devicetype), $this->ext_devices)) {
// We'll return max. one folder of supported type
$result = array();
$types = $this->folder_types;
@@ -467,7 +470,7 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
}
// device supports multiple folders?
- if (in_array(strtolower($this->device->devicetype), array('iphone', 'ipad', 'thundertine', 'windowsphone'))) {
+ if (in_array(strtolower($this->device->devicetype), $this->ext_devices)) {
if ($list[$folder_id]) {
$result[] = $folder_id;
}