[evolution] Update error handling when sending offline.



commit acdf842238d1632dea21752c449077f7cbb502b1
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Nov 4 08:23:34 2013 -0500

    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 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index edd33ca..507f12f 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]