Use folder name for UID if writing to IMAP metadata fails
This commit is contained in:
parent
f5dc95c3df
commit
372cf33d18
1 changed files with 5 additions and 2 deletions
|
@ -119,9 +119,12 @@ class kolab_storage_folder extends kolab_storage_folder_api
|
|||
|
||||
// generate a folder UID and set it to IMAP
|
||||
$uid = rtrim(chunk_split(md5($this->name . $this->get_owner() . uniqid('-', true)), 12, '-'), '-');
|
||||
$this->set_uid($uid);
|
||||
if ($this->set_uid($uid)) {
|
||||
return $uid;
|
||||
}
|
||||
|
||||
return $uid;
|
||||
// create hash from folder name if we can't write the UID metadata
|
||||
return md5($this->name . $this->get_owner());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue