From acdf842238d1632dea21752c449077f7cbb502b1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 4 Nov 2013 08:23:34 -0500 Subject: Update error handling when sending offline. Camel now uses GResolver for domain name resolution, so check for G_RESOLVER_ERROR when sending so the "saving-to-outbox" alert can work again. --- mail/em-composer-utils.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index edd33ca846..507f12f91b 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -523,7 +523,14 @@ composer_send_completed (GObject *source_object, g_error_matches ( local_error, CAMEL_SERVICE_ERROR, CAMEL_SERVICE_ERROR_UNAVAILABLE) || - /* a name resolution failed */ + /* name resolution failed */ + g_error_matches ( + local_error, G_RESOLVER_ERROR, + G_RESOLVER_ERROR_NOT_FOUND) || + g_error_matches ( + local_error, G_RESOLVER_ERROR, + G_RESOLVER_ERROR_TEMPORARY_FAILURE) || + /* something internal to Camel failed */ g_error_matches ( local_error, CAMEL_SERVICE_ERROR, CAMEL_SERVICE_ERROR_URL_INVALID); -- cgit v1.2.3