changeset 41:38681cf8c4cd HEAD

"Authentication server isn't connected, try again later.." error is sent to user when imap-auth hasn't been connected to for some reason.
author Timo Sirainen <tss@iki.fi>
date Tue, 27 Aug 2002 00:58:34 +0300
parents 1ba4156fe84f
children 1ab58549429d
files src/login/auth-connection.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/login/auth-connection.c	Tue Aug 27 00:53:56 2002 +0300
+++ b/src/login/auth-connection.c	Tue Aug 27 00:58:34 2002 +0300
@@ -139,9 +139,14 @@
 		}
 	}
 
-	if (!found)
-		*error = "Unsupported authentication method";
-	else {
+	if (!found) {
+		if ((available_auth_methods & method) == 0)
+			*error = "Unsupported authentication method";
+		else {
+			*error = "Authentication server isn't connected, "
+				"try again later..";
+		}
+	} else {
 		*error = "Authentication servers are busy, wait..";
 		i_warning("Authentication servers are busy");
 	}