diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-30 04:50:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-30 04:56:21 +0800 |
commit | 481ec13e185810444cf252313752cacb6e0b1d03 (patch) | |
tree | 1198bea6dcef85d9a15b5827e05a80d98c725c13 /libemail-engine/e-mail-session-utils.c | |
parent | f5dda1db35cab0589ebfe37f71d96eedf4b16901 (diff) | |
download | gsoc2013-evolution-481ec13e185810444cf252313752cacb6e0b1d03.tar gsoc2013-evolution-481ec13e185810444cf252313752cacb6e0b1d03.tar.gz gsoc2013-evolution-481ec13e185810444cf252313752cacb6e0b1d03.tar.bz2 gsoc2013-evolution-481ec13e185810444cf252313752cacb6e0b1d03.tar.lz gsoc2013-evolution-481ec13e185810444cf252313752cacb6e0b1d03.tar.xz gsoc2013-evolution-481ec13e185810444cf252313752cacb6e0b1d03.tar.zst gsoc2013-evolution-481ec13e185810444cf252313752cacb6e0b1d03.zip |
e_mail_session_send_to(): Don't silently ignore if we can't send.
If sending fails for any reason, return a suitable GError. Don't just
return silently. Also check for a wider range of errors indicating the
service is unavailable in composer_send_completed(). This will trigger
the "save-to-outbox" info alert.
(cherry picked from commit 13089f0d5088cf138697121a0839bd7d3ed85e42)
Diffstat (limited to 'libemail-engine/e-mail-session-utils.c')
-rw-r--r-- | libemail-engine/e-mail-session-utils.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libemail-engine/e-mail-session-utils.c b/libemail-engine/e-mail-session-utils.c index 1e2d110767..7e1aae3ef8 100644 --- a/libemail-engine/e-mail-session-utils.c +++ b/libemail-engine/e-mail-session-utils.c @@ -544,13 +544,6 @@ mail_session_send_to_thread (GSimpleAsyncResult *simple, return; } - provider = camel_service_get_provider (context->transport); - if ((provider->flags & CAMEL_PROVIDER_IS_REMOTE) != 0 && - !camel_session_get_online (CAMEL_SESSION (session))) { - /* silently ignore */ - return; - } - status = camel_service_get_connection_status (context->transport); if (status != CAMEL_SERVICE_CONNECTED) { did_connect = TRUE; @@ -564,6 +557,8 @@ mail_session_send_to_thread (GSimpleAsyncResult *simple, } } + provider = camel_service_get_provider (context->transport); + if (provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER) copy_to_sent = FALSE; |