We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f099a7 commit 17eabe8Copy full SHA for 17eabe8
1 file changed
lib/IMAP/HordeImapClient.php
@@ -91,7 +91,7 @@ protected function _login() {
91
return $this->imapLogin();
92
} catch (Horde_Imap_Client_Exception $e) {
93
if ($e->getCode() === Horde_Imap_Client_Exception::LOGIN_AUTHENTICATIONFAILED
94
- && $e->getMessage() === 'Authentication failed.') {
+ && in_array($e->getMessage(), ['Authentication failed.', 'Mail server denied authentication.'], true)) {
95
$this->rateLimiterCache->inc($cacheKey);
96
if ($this->rateLimiterCache instanceof IMemcacheTTL) {
97
$this->rateLimiterCache->setTTL($cacheKey, self::RATE_LIMIT_WINDOW);
0 commit comments