|
|
@ -812,7 +812,12 @@ class rcube_imap extends rcube_storage
|
|
|
|
return $mcache->get_thread($folder);
|
|
|
|
return $mcache->get_thread($folder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($this->icache['threads'])) {
|
|
|
|
if (!empty($this->icache['threads'])) {
|
|
|
|
|
|
|
|
if ($this->icache['threads']->get_parameters('MAILBOX') == $folder) {
|
|
|
|
|
|
|
|
return $this->icache['threads'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!$this->check_connection()) {
|
|
|
|
if (!$this->check_connection()) {
|
|
|
|
return new rcube_result_thread();
|
|
|
|
return new rcube_result_thread();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -822,10 +827,7 @@ class rcube_imap extends rcube_storage
|
|
|
|
$this->options['skip_deleted'] ? 'UNDELETED' : '', true);
|
|
|
|
$this->options['skip_deleted'] ? 'UNDELETED' : '', true);
|
|
|
|
|
|
|
|
|
|
|
|
// add to internal (fast) cache
|
|
|
|
// add to internal (fast) cache
|
|
|
|
$this->icache['threads'] = $result;
|
|
|
|
return $this->icache['threads'] = $result;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->icache['threads'];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|