diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-11-04 21:23:34 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-11-04 21:23:34 +0800 |
commit | acdf842238d1632dea21752c449077f7cbb502b1 (patch) | |
tree | f90b07c455556f060817d53f848f250c3e9d6002 /mail/em-composer-utils.c | |
parent | 55e08ff07fe705eb6658b3d01e1c000fddd03ecb (diff) | |
download | gsoc2013-evolution-acdf842238d1632dea21752c449077f7cbb502b1.tar gsoc2013-evolution-acdf842238d1632dea21752c449077f7cbb502b1.tar.gz gsoc2013-evolution-acdf842238d1632dea21752c449077f7cbb502b1.tar.bz2 gsoc2013-evolution-acdf842238d1632dea21752c449077f7cbb502b1.tar.lz gsoc2013-evolution-acdf842238d1632dea21752c449077f7cbb502b1.tar.xz gsoc2013-evolution-acdf842238d1632dea21752c449077f7cbb502b1.tar.zst gsoc2013-evolution-acdf842238d1632dea21752c449077f7cbb502b1.zip |
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.
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r-- | 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 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); |