diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-04-18 01:13:55 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-04-18 01:13:55 +0800 |
commit | ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4 (patch) | |
tree | a832dbe0abedd11d440112ef44ade568bb76685a /mail/e-mail-session-utils.c | |
parent | 40cb250a71e0264f75cd1d02e3f77af5fb550c09 (diff) | |
download | gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.gz gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.zst gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.zip |
Adapt to sealed up CamelService.
Diffstat (limited to 'mail/e-mail-session-utils.c')
-rw-r--r-- | mail/e-mail-session-utils.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mail/e-mail-session-utils.c b/mail/e-mail-session-utils.c index a16de66f70..26d6dcb310 100644 --- a/mail/e-mail-session-utils.c +++ b/mail/e-mail-session-utils.c @@ -402,7 +402,8 @@ mail_session_send_to_thread (GSimpleAsyncResult *simple, /* Send the message to all recipients. */ if (camel_address_length (context->recipients) > 0) { CamelTransport *transport; - CamelProviderFlags flags; + CamelProvider *provider; + CamelService *service; /* XXX This API does not allow for cancellation. */ transport = camel_session_get_transport ( @@ -418,8 +419,10 @@ mail_session_send_to_thread (GSimpleAsyncResult *simple, g_return_if_fail (CAMEL_IS_TRANSPORT (transport)); - flags = CAMEL_SERVICE (transport)->provider->flags; - if (flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER) + service = CAMEL_SERVICE (transport); + provider = camel_service_get_provider (service); + + if (provider->flags & CAMEL_PROVIDER_DISABLE_SENT_FOLDER) copy_to_sent = FALSE; camel_transport_send_to_sync ( @@ -839,7 +842,7 @@ e_mail_session_unsubscribe_folder_sync (EMailSession *session, { CamelURL *url; CamelStore *store; - CamelProviderURLFlags flags; + CamelProvider *provider; const gchar *message; const gchar *path = NULL; gboolean success = FALSE; @@ -859,9 +862,9 @@ e_mail_session_unsubscribe_folder_sync (EMailSession *session, if (url == NULL) goto exit; - flags = CAMEL_SERVICE (store)->provider->url_flags; + provider = camel_service_get_provider (CAMEL_SERVICE (store)); - if (flags & CAMEL_URL_FRAGMENT_IS_PATH) + if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH) path = url->fragment; else if (url->path != NULL && *url->path != '\0') path = url->path + 1; |