aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 752a78af07..b916e15d29 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -2042,11 +2042,16 @@ reply_get_composer (EShell *shell,
if (folder) {
CamelStore *parent_store;
+ CamelService *service;
+ CamelURL *url;
parent_store = camel_folder_get_parent_store (folder);
+
+ service = CAMEL_SERVICE (parent_store);
+ url = camel_service_get_camel_url (service);
+
store_url = camel_url_to_string (
- CAMEL_SERVICE (parent_store)->url,
- CAMEL_URL_HIDE_ALL);
+ url, CAMEL_URL_HIDE_ALL);
if (store_url[strlen (store_url) - 1] == '/')
store_url[strlen (store_url)-1] = '\0';
}