From 953526bb921dfa13a1fbd90b04651592e048ab36 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 2 Mar 2001 19:37:02 +0000 Subject: Updated with the extended AUTH return codes. 2001-03-02 Jeffrey Stedfast * providers/smtp/camel-smtp-transport.c (get_smtp_error_string): Updated with the extended AUTH return codes. svn path=/trunk/; revision=8527 --- camel/providers/smtp/camel-smtp-transport.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'camel/providers/smtp') diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c index f4f7bd8bb3..90a9c5f377 100644 --- a/camel/providers/smtp/camel-smtp-transport.c +++ b/camel/providers/smtp/camel-smtp-transport.c @@ -179,6 +179,19 @@ get_smtp_error_string (int error) return _("Start mail input; end with ."); case 554: return _("Transaction failed"); + + /* AUTH error codes: */ + case 432: + return _("A password transition is needed"); + case 534: + return _("Authentication mechanism is too weak"); + case 538: + return _("Encryption required for requested authentication mechanism"); + case 454: + return _("Temporary authentication failure"); + case 530: + return _("Authentication required"); + default: return _("Unknown"); } @@ -681,7 +694,7 @@ smtp_auth (CamelSmtpTransport *transport, const char *mech, CamelException *ex) lose: if (!camel_exception_is_set (ex)) { camel_exception_set (ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE, - _("Bad authentication response from server.")); + _("Bad authentication response from server.\n")); } camel_object_unref (CAMEL_OBJECT (sasl)); -- cgit v1.2.3