aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-12-17 00:27:12 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2009-12-17 01:10:02 +0800
commit968ea42023e5e0daf860a7246533311a67f77e05 (patch)
treeb68bd7c80b48c09e332b45c9e3b4ed98fd68efd9 /mail/mail-config.c
parent3a0a795a167ed33eaa6a9a73b0edeb854aef6f0f (diff)
downloadgsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar
gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.gz
gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.bz2
gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.lz
gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.xz
gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.tar.zst
gsoc2013-evolution-968ea42023e5e0daf860a7246533311a67f77e05.zip
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.
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 41ac85a373..be2125bcc0 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -59,7 +59,6 @@
#include <libedataserverui/e-passwords.h>
#include "e-mail-local.h"
-#include "em-utils.h"
#include "mail-config.h"
#include "mail-folder-cache.h"
#include "mail-mt.h"
@@ -441,7 +440,7 @@ uri_to_evname (const gchar *uri, const gchar *prefix)
gchar *safe;
gchar *tmp;
- data_dir = em_utils_get_data_dir ();
+ data_dir = mail_session_get_data_dir ();
safe = g_strdup (uri);
e_filename_make_safe (safe);
@@ -573,7 +572,7 @@ mail_config_folder_to_cachename (CamelFolder *folder, const gchar *prefix)
gchar *url, *basename, *filename;
const gchar *config_dir;
- config_dir = em_utils_get_config_dir ();
+ config_dir = mail_session_get_config_dir ();
url = mail_config_folder_to_safe_url (folder);
basename = g_strdup_printf ("%s%s", prefix, url);
filename = g_build_filename (config_dir, basename, NULL);