summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-05-16 06:54:12 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-05-16 06:54:12 (GMT)
commitc23e96f29d25e1bd05b2ec7e8900a8d812f6673f (patch)
treee26edd9d2d277af1a8f29a32b117e397b7066ef4
parent0364945d81bf480c6d6e4ef10b1aef61ba1f5e23 (diff)
downloadiRony-c23e96f29d25e1bd05b2ec7e8900a8d812f6673f.tar.gz
Don't attempt to write /vendor/cmu/cyrus-imapd/uniqueid annotations
-rw-r--r--lib/Kolab/Utils/DAVBackend.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Kolab/Utils/DAVBackend.php b/lib/Kolab/Utils/DAVBackend.php
index f1b7c02..d772eb8 100644
--- a/lib/Kolab/Utils/DAVBackend.php
+++ b/lib/Kolab/Utils/DAVBackend.php
@@ -85,13 +85,9 @@ class DAVBackend
*/
public static function set_uid($folder, $uid)
{
- $metakeys = array(self::IMAP_UID_KEY_CYRUS, self::IMAP_UID_KEY, self::IMAP_UID_KEY_PRIVATE);
- foreach ($metakeys as $key) {
- if ($success = $folder->set_metadata(array($key => $uid))) {
- break;
- }
+ if (!($success = $folder->set_metadata(array(self::IMAP_UID_KEY => $uid)))) {
+ $success = $folder->set_metadata(array(self::IMAP_UID_KEY_PRIVATE => $uid));
}
-
return $success;
}