aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-local.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-10-22 01:26:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-10-25 00:03:54 +0800
commit56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6 (patch)
tree9d042f76db5acba2aaaed47b41c581a06a204883 /mail/e-mail-local.c
parent8c67e84f9bf1803108f7a004513e37c6ef22d41f (diff)
downloadgsoc2013-evolution-56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6.tar
gsoc2013-evolution-56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6.tar.gz
gsoc2013-evolution-56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6.tar.bz2
gsoc2013-evolution-56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6.tar.lz
gsoc2013-evolution-56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6.tar.xz
gsoc2013-evolution-56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6.tar.zst
gsoc2013-evolution-56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6.zip
Adapt to CamelNetworkSettings changes.
Diffstat (limited to 'mail/e-mail-local.c')
-rw-r--r--mail/e-mail-local.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/mail/e-mail-local.c b/mail/e-mail-local.c
index 1f33c08ab8..28d174e303 100644
--- a/mail/e-mail-local.c
+++ b/mail/e-mail-local.c
@@ -53,9 +53,9 @@ void
e_mail_local_init (EMailSession *session,
const gchar *data_dir)
{
+ CamelSettings *settings;
CamelService *service;
- CamelURL *url;
- gchar *temp;
+ gchar *path;
gint ii;
GError *error = NULL;
@@ -67,19 +67,19 @@ e_mail_local_init (EMailSession *session,
mail_local_initialized = TRUE;
- url = camel_url_new ("maildir:", NULL);
- temp = g_build_filename (data_dir, "local", NULL);
- camel_url_set_path (url, temp);
- g_free (temp);
-
- temp = camel_url_to_string (url, 0);
service = camel_session_add_service (
- CAMEL_SESSION (session), "local", temp,
+ CAMEL_SESSION (session),
+ "local", "maildir",
CAMEL_PROVIDER_STORE, &error);
- g_free (temp);
camel_service_set_display_name (service, _("On This Computer"));
+ settings = camel_service_get_settings (service);
+
+ path = g_build_filename (data_dir, "local", NULL);
+ g_object_set (settings, "path", path, NULL);
+ g_free (path);
+
/* Shouldn't need to worry about other mail applications
* altering files in our local mail store. */
g_object_set (service, "need-summary-check", FALSE, NULL);
@@ -114,8 +114,6 @@ e_mail_local_init (EMailSession *session,
}
}
- camel_url_free (url);
-
local_store = g_object_ref (service);
return;
@@ -126,7 +124,6 @@ fail:
error->message);
g_error_free (error);
- camel_url_free (url);
}
CamelFolder *