[evolution-data-server/gnome-3-28] Bug 793601 - [IMAPx] Asks for password when server is unavailable
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-28] Bug 793601 - [IMAPx] Asks for password when server is unavailable
- Date: Thu, 29 Mar 2018 09:51:54 +0000 (UTC)
commit d93ebaa596356cd0cace61a1abc87be19d4885b6
Author: Milan Crha <mcrha redhat com>
Date: Thu Mar 29 11:42:49 2018 +0200
Bug 793601 - [IMAPx] Asks for password when server is unavailable
src/camel/providers/imapx/camel-imapx-server.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-server.c b/src/camel/providers/imapx/camel-imapx-server.c
index d94a4f7..4632653 100644
--- a/src/camel/providers/imapx/camel-imapx-server.c
+++ b/src/camel/providers/imapx/camel-imapx-server.c
@@ -3028,6 +3028,12 @@ camel_imapx_server_authenticate_sync (CamelIMAPXServer *is,
CAMEL_IMAPX_SERVER_ERROR_CONCURRENT_CONNECT_FAILED,
ic->status->text ? ic->status->text : _("Unknown error"));
result = CAMEL_AUTHENTICATION_ERROR;
+ } else if (ic->status->condition != IMAPX_UNKNOWN && ic->status->condition !=
IMAPX_AUTHENTICATIONFAILED) {
+ g_set_error_literal (
+ error, CAMEL_SERVICE_ERROR,
+ CAMEL_SERVICE_ERROR_UNAVAILABLE,
+ ic->status->text ? ic->status->text : _("Unknown error"));
+ result = CAMEL_AUTHENTICATION_ERROR;
} else if (sasl) {
CamelSaslClass *sasl_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]