aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-18 01:13:55 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-04-18 01:13:55 +0800
commitea0fdf21ece0f81b6bbe3c08e1c21da76280acd4 (patch)
treea832dbe0abedd11d440112ef44ade568bb76685a /mail/em-folder-utils.c
parent40cb250a71e0264f75cd1d02e3f77af5fb550c09 (diff)
downloadgsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.gz
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.zst
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.zip
Adapt to sealed up CamelService.
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r--mail/em-folder-utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 5e21fc47f2..e115929e4c 100644
--- a/mail/em-folder-utils.c
+++ b/mail/em-folder-utils.c
@@ -298,6 +298,8 @@ emfu_copy_folder_selected (EMailBackend *backend,
struct _copy_folder_data *cfd = data;
CamelStore *fromstore = NULL, *tostore = NULL;
CamelStore *local_store;
+ CamelService *service;
+ CamelProvider *provider;
const gchar *tobase = NULL;
CamelURL *url;
GError *local_error = NULL;
@@ -341,8 +343,11 @@ emfu_copy_folder_selected (EMailBackend *backend,
goto fail;
}
+ service = CAMEL_SERVICE (tostore);
+ provider = camel_service_get_provider (service);
+
url = camel_url_new (uri, NULL);
- if (((CamelService *)tostore)->provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
+ if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
tobase = url->fragment;
else if (url->path && url->path[0])
tobase = url->path+1;