|
|
@ -1077,7 +1077,7 @@ class rcube_imap_generic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!$this->data['READ-WRITE']) {
|
|
|
|
if (!$this->data['READ-WRITE']) {
|
|
|
|
$this->setError(self::ERROR_READONLY, "Mailbox is read-only", 'EXPUNGE');
|
|
|
|
$this->setError(self::ERROR_READONLY, "Mailbox is read-only");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1936,7 +1936,7 @@ class rcube_imap_generic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!$this->data['READ-WRITE']) {
|
|
|
|
if (!$this->data['READ-WRITE']) {
|
|
|
|
$this->setError(self::ERROR_READONLY, "Mailbox is read-only", 'STORE');
|
|
|
|
$this->setError(self::ERROR_READONLY, "Mailbox is read-only");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1997,7 +1997,7 @@ class rcube_imap_generic
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!$this->data['READ-WRITE']) {
|
|
|
|
if (!$this->data['READ-WRITE']) {
|
|
|
|
$this->setError(self::ERROR_READONLY, "Mailbox is read-only", 'STORE');
|
|
|
|
$this->setError(self::ERROR_READONLY, "Mailbox is read-only");
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -2508,7 +2508,7 @@ class rcube_imap_generic
|
|
|
|
$tokens = $this->tokenizeResponse(preg_replace('/(^\(|\)$)/', '', $line));
|
|
|
|
$tokens = $this->tokenizeResponse(preg_replace('/(^\(|\)$)/', '', $line));
|
|
|
|
|
|
|
|
|
|
|
|
for ($i=0; $i<count($tokens); $i+=2) {
|
|
|
|
for ($i=0; $i<count($tokens); $i+=2) {
|
|
|
|
if (preg_match('/^(BODY|BINARY)/i', $token)) {
|
|
|
|
if (preg_match('/^(BODY|BINARY)/i', $tokens[$i])) {
|
|
|
|
$result = $tokens[$i+1];
|
|
|
|
$result = $tokens[$i+1];
|
|
|
|
$found = true;
|
|
|
|
$found = true;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|