Make some metadata from the Kolab storage backend available to the library user
This commit is contained in:
parent
38e622023a
commit
5b4c9500d1
2 changed files with 12 additions and 0 deletions
|
@ -591,6 +591,7 @@ class kolab_storage_cache
|
|||
$object['_type'] = $sql_arr['type'];
|
||||
$object['_msguid'] = $sql_arr['msguid'];
|
||||
$object['_mailbox'] = $this->folder->name;
|
||||
$object['_size'] = strlen($sql_arr['xml']);
|
||||
$object['_formatobj'] = kolab_format::factory($sql_arr['type'], 3.0, $sql_arr['xml']);
|
||||
|
||||
return $object;
|
||||
|
|
|
@ -51,6 +51,7 @@ class kolab_storage_folder
|
|||
private $type_annotation;
|
||||
private $imap;
|
||||
private $info;
|
||||
private $idata;
|
||||
private $owner;
|
||||
private $resource_uri;
|
||||
private $uid2msg = array();
|
||||
|
@ -99,6 +100,16 @@ class kolab_storage_folder
|
|||
return $this->info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make IMAP folder data available for this folder
|
||||
*/
|
||||
public function get_imap_data()
|
||||
{
|
||||
if (!isset($this->idata))
|
||||
$this->idata = $this->imap->folder_data($this->name);
|
||||
|
||||
return $this->idata;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns IMAP metadata/annotations (GETMETADATA/GETANNOTATION)
|
||||
|
|
Loading…
Add table
Reference in a new issue