@@ -42,11 +42,12 @@ class OC_User_IMAP extends \OCA\user_external\Base {
|
|||||||
OCP\Util::writeLog('user_external', 'ERROR: PHP imap extension is not installed', OCP\Util::ERROR);
|
OCP\Util::writeLog('user_external', 'ERROR: PHP imap extension is not installed', OCP\Util::ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$mbox = @imap_open($this->mailbox, $uid, $password, OP_HALFOPEN);
|
$mbox = @imap_open($this->mailbox, $uid, $password, OP_HALFOPEN, 1);
|
||||||
imap_errors();
|
imap_errors();
|
||||||
imap_alerts();
|
imap_alerts();
|
||||||
if($mbox !== FALSE) {
|
if($mbox !== FALSE) {
|
||||||
imap_close($mbox);
|
imap_close($mbox);
|
||||||
|
$uid = mb_strtolower($uid);
|
||||||
$this->storeUser($uid);
|
$this->storeUser($uid);
|
||||||
return $uid;
|
return $uid;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user