diff options
Diffstat (limited to 'mail/em-folder-utils.c')
-rw-r--r-- | mail/em-folder-utils.c | 7 |
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; |