From aa99a5060a955532c3703dd6f1a9810766396217 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 9 Oct 2002 17:29:34 +0000 Subject: If the response from the IMAP server is "No", don't set the 2002-10-08 Jeffrey Stedfast * providers/imap/camel-imap-command.c (imap_read_response): If the response from the IMAP server is "No", don't set the SERVICE_UNAVAILABLE exception, this makes error reporting in the UI for deleting IMAP folders that cannot be deleted inaccurate (ie, it reports "Cannot delete in offline mode" which is not the problem). svn path=/trunk/; revision=18356 --- camel/providers/imap/camel-imap-command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/providers') diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c index f12a4a55fb..13a472f5b5 100644 --- a/camel/providers/imap/camel-imap-command.c +++ b/camel/providers/imap/camel-imap-command.c @@ -401,7 +401,7 @@ imap_read_response (CamelImapStore *store, CamelException *ex) p += 3; if (!*p++) p = NULL; - camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE, + camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM, _("IMAP command failed: %s"), p ? p : _("Unknown error")); camel_imap_response_free_without_processing (store, response); -- cgit v1.2.3