fixed lost mails if trying to move to a mailbox one has no rights or is over quota

This commit is contained in:
Ralf Becker 2007-07-19 11:14:08 +00:00
parent 4e75d475fc
commit 3df1e4a6fd

View File

@ -1203,6 +1203,9 @@ class Net_IMAP extends Net_IMAPProtocol {
if ( PEAR::isError( $ret ) ) {
return $ret;
}
if(strtoupper($ret["RESPONSE"]["CODE"]) != "OK"){
return new PEAR_Error($ret["RESPONSE"]["CODE"] . ", " . $ret["RESPONSE"]["STR_CODE"]);
}
return true;
}