dovecot-2.0: login proxy: Changed "unavailable" error message.

dovecot at dovecot.org dovecot at dovecot.org
Thu Aug 13 01:15:39 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/a260d5ac01bf
changeset: 9775:a260d5ac01bf
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 12 18:15:32 2009 -0400
description:
login proxy: Changed "unavailable" error message.

diffstat:

1 file changed, 6 insertions(+), 4 deletions(-)
src/login-common/client-common-auth.c |   10 ++++++----

diffs (48 lines):

diff -r da0a48b243a2 -r a260d5ac01bf src/login-common/client-common-auth.c
--- a/src/login-common/client-common-auth.c	Wed Aug 12 18:11:15 2009 -0400
+++ b/src/login-common/client-common-auth.c	Wed Aug 12 18:15:32 2009 -0400
@@ -10,6 +10,8 @@
 #include "client-common.h"
 
 #include <stdlib.h>
+
+#define PROXY_FAILURE_MSG "Account is temporarily unavailable."
 
 /* If we've been waiting auth server to respond for over this many milliseconds,
    send a "waiting" message. */
@@ -194,7 +196,7 @@ void client_proxy_failed(struct client *
 {
 	if (send_line) {
 		client_send_line(client, CLIENT_CMD_REPLY_AUTH_FAIL_TEMP,
-				 AUTH_TEMP_FAILED_MSG);
+				 PROXY_FAILURE_MSG);
 	}
 
 	login_proxy_free(&client->login_proxy);
@@ -260,7 +262,7 @@ static int proxy_start(struct client *cl
 	if (reply->password == NULL) {
 		client_log_err(client, "proxy: password not given");
 		client_send_line(client, CLIENT_CMD_REPLY_AUTH_FAIL_TEMP,
-				 AUTH_TEMP_FAILED_MSG);
+				 PROXY_FAILURE_MSG);
 		return -1;
 	}
 
@@ -275,7 +277,7 @@ static int proxy_start(struct client *cl
 				   reply->destuser)) {
 		client_log_err(client, "Proxying loops to itself");
 		client_send_line(client, CLIENT_CMD_REPLY_AUTH_FAIL_TEMP,
-				 AUTH_TEMP_FAILED_MSG);
+				 PROXY_FAILURE_MSG);
 		return -1;
 	}
 
@@ -289,7 +291,7 @@ static int proxy_start(struct client *cl
 		login_proxy_new(client, &proxy_set, proxy_input, client);
 	if (client->login_proxy == NULL) {
 		client_send_line(client, CLIENT_CMD_REPLY_AUTH_FAIL_TEMP,
-				 AUTH_TEMP_FAILED_MSG);
+				 PROXY_FAILURE_MSG);
 		return -1;
 	}
 


More information about the dovecot-cvs mailing list