|
|
@ -1742,7 +1742,7 @@ class rcube_imap_generic
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param array $items Client identification information key/value hash
|
|
|
|
* @param array $items Client identification information key/value hash
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @return array Server identification information key/value hash
|
|
|
|
* @return array|false Server identification information key/value hash, False on error
|
|
|
|
* @since 0.6
|
|
|
|
* @since 0.6
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function id($items = array())
|
|
|
|
public function id($items = array())
|
|
|
@ -1761,11 +1761,13 @@ class rcube_imap_generic
|
|
|
|
if ($code == self::ERROR_OK && $response) {
|
|
|
|
if ($code == self::ERROR_OK && $response) {
|
|
|
|
$response = substr($response, 5); // remove prefix "* ID "
|
|
|
|
$response = substr($response, 5); // remove prefix "* ID "
|
|
|
|
$items = $this->tokenizeResponse($response, 1);
|
|
|
|
$items = $this->tokenizeResponse($response, 1);
|
|
|
|
$result = null;
|
|
|
|
$result = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (is_array($items)) {
|
|
|
|
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];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $result;
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|