Activate storing calendar color in IMAP annotations according to KEP 9,12

This commit is contained in:
Thomas 2011-08-31 22:03:37 +02:00
parent c9e4b6ab1a
commit e1eca18a3c
2 changed files with 3 additions and 2 deletions

View file

@ -153,6 +153,7 @@ class kolab_calendar
public function get_color()
{
// color is defined in folder METADATA
// FIXME: Kolab_Folder::getKolabAttribute() only reads value.shared; value.priv should be considered first
if ($color = $this->storage->_folder->getKolabAttribute('color')) {
return $color;
}

View file

@ -315,7 +315,7 @@ class kolab_driver extends calendar_driver
if (!($result = rcube_kolab::folder_create($folder, 'event', false)))
$this->last_error = rcube_kolab::$last_error;
}
/*
// save color in METADATA
// TODO: also save 'showalarams' and other properties here
if ($result && $prop['color']) {
@ -324,7 +324,7 @@ class kolab_driver extends calendar_driver
if ($meta_saved)
unset($prop['color']); // unsetting will prevent fallback to local user prefs
}
*/
return $result ? $folder : false;
}