From 968ea42023e5e0daf860a7246533311a67f77e05 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Wed, 16 Dec 2009 10:27:12 -0600 Subject: Kill em_utils_get_data/config_dir(), push down to MailSession This pushes the get_data_dir() API down to the right level. At present, it is still implemented by querying the shell backend for the data dir / config dir. But this should eventually be reversed (when mail is split off to EDS) so that the mail daemon is the one responsible for the storage locations and the shell backend queries the daemon for these values. --- mail/mail-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 8110ab48db..e07fe19a67 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -256,7 +256,7 @@ uid_cachename_hack (CamelStore *store) url->host); e_filename_make_safe (encoded_url); - data_dir = em_utils_get_data_dir (); + data_dir = mail_session_get_data_dir (); filename = g_build_filename (data_dir, "pop", encoded_url, "uid-cache", NULL); g_free (encoded_url); @@ -1796,7 +1796,7 @@ empty_trash_exec (struct _empty_trash_msg *m) if (m->account) { trash = mail_tool_get_trash (m->account->source->url, FALSE, &m->base.ex); } else { - data_dir = em_utils_get_data_dir (); + data_dir = mail_session_get_data_dir (); uri = g_strdup_printf ("mbox:%s/local", data_dir); trash = mail_tool_get_trash (uri, TRUE, &m->base.ex); g_free (uri); -- cgit