|
|
@ -1250,7 +1250,7 @@ class rcube_imap_generic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
list($code, $response) = $this->execute('STATUS', array($this->escape($mailbox),
|
|
|
|
list($code, $response) = $this->execute('STATUS', array($this->escape($mailbox),
|
|
|
|
'(' . implode(' ', (array) $items) . ')'));
|
|
|
|
'(' . implode(' ', $items) . ')'));
|
|
|
|
|
|
|
|
|
|
|
|
if ($code == self::ERROR_OK && preg_match('/^\* STATUS /i', $response)) {
|
|
|
|
if ($code == self::ERROR_OK && preg_match('/^\* STATUS /i', $response)) {
|
|
|
|
$result = array();
|
|
|
|
$result = array();
|
|
|
@ -1263,11 +1263,11 @@ class rcube_imap_generic
|
|
|
|
if (!is_array($items) && ($pos = strpos($response, '(')) !== false) {
|
|
|
|
if (!is_array($items) && ($pos = strpos($response, '(')) !== false) {
|
|
|
|
$response = substr($response, $pos);
|
|
|
|
$response = substr($response, $pos);
|
|
|
|
$items = $this->tokenizeResponse($response, 1);
|
|
|
|
$items = $this->tokenizeResponse($response, 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!is_array($items)) {
|
|
|
|
if (!is_array($items)) {
|
|
|
|
return $result;
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ($i=0, $len=count($items); $i<$len; $i += 2) {
|
|
|
|
for ($i=0, $len=count($items); $i<$len; $i += 2) {
|
|
|
|
$result[$items[$i]] = $items[$i+1];
|
|
|
|
$result[$items[$i]] = $items[$i+1];
|
|
|
|