aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-06-01 22:13:03 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:22 +0800
commit4c7f465696dea37fa7f8d483910c3a1e249d62f4 (patch)
tree6ad70140d1ee6d05e11578cedffac7d705622f96 /mail/mail-config.c
parentf8ebb730851f15da1f44e0b2fb5fca3777361fdc (diff)
downloadgsoc2013-evolution-4c7f465696dea37fa7f8d483910c3a1e249d62f4.tar
gsoc2013-evolution-4c7f465696dea37fa7f8d483910c3a1e249d62f4.tar.gz
gsoc2013-evolution-4c7f465696dea37fa7f8d483910c3a1e249d62f4.tar.bz2
gsoc2013-evolution-4c7f465696dea37fa7f8d483910c3a1e249d62f4.tar.lz
gsoc2013-evolution-4c7f465696dea37fa7f8d483910c3a1e249d62f4.tar.xz
gsoc2013-evolution-4c7f465696dea37fa7f8d483910c3a1e249d62f4.tar.zst
gsoc2013-evolution-4c7f465696dea37fa7f8d483910c3a1e249d62f4.zip
Bug #578245 - View settings for threads getting lost
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 02d6f68cfe..2e67281670 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -240,6 +240,14 @@ mail_config_folder_to_cachename (CamelFolder *folder, const gchar *prefix)
const gchar *config_dir;
config_dir = mail_session_get_config_dir ();
+
+ basename = g_build_filename (config_dir, "folders", NULL);
+ if (!g_file_test (basename, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
+ /* create the folder if does not exist */
+ g_mkdir_with_parents (basename, 0700);
+ }
+ g_free (basename);
+
folder_uri = e_mail_folder_uri_from_folder (folder);
e_filename_make_safe (folder_uri);
basename = g_strdup_printf ("%s%s", prefix, folder_uri);