aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-12-04 07:11:40 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-12-04 07:11:40 +0800
commit0755131616388f21c5a55233464b1f12cf987abb (patch)
treee543ab8145d323284e989b95fa2dc0097a6e4548 /mail/mail-config.c
parent1b74224c04782be274167b02711f7692e3b97904 (diff)
downloadgsoc2013-evolution-0755131616388f21c5a55233464b1f12cf987abb.tar.gz
gsoc2013-evolution-0755131616388f21c5a55233464b1f12cf987abb.tar.zst
gsoc2013-evolution-0755131616388f21c5a55233464b1f12cf987abb.zip
Updated to add use mail subdirs. (mail_config_uri_renamed): Updated
2003-12-03 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (uri_to_evname): Updated to add use mail subdirs. (mail_config_uri_renamed): Updated cachenames[] (mail_config_folder_to_cachename): Fixed to use the correct path. * em-folder-browser.c (emfb_create_view_menus): Updated the galview path to point to the evo-1.5 location. (emfb_set_folder): Update the galview view_instance. (emfb_create_view_instance): Split out from emfb_create_view_menus() (emfb_create_view_menus): Reduced code, call emfb_create_view_instance() svn path=/trunk/; revision=23624
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index a034c743da..6fa378e25b 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -942,14 +942,14 @@ uri_to_evname (const char *uri, const char *prefix)
const char *base_directory = mail_component_peek_base_directory (mail_component_peek ());
char *safe;
char *tmp;
-
+
safe = g_strdup (uri);
e_filename_make_safe (safe);
/* blah, easiest thing to do */
if (prefix[0] == '*')
- tmp = g_strdup_printf ("%s/%s%s.xml", base_directory, prefix + 1, safe);
+ tmp = g_strdup_printf ("%s/mail/%s%s.xml", base_directory, prefix + 1, safe);
else
- tmp = g_strdup_printf ("%s/%s%s", base_directory, prefix, safe);
+ tmp = g_strdup_printf ("%s/mail/%s%s", base_directory, prefix, safe);
g_free (safe);
return tmp;
}
@@ -964,8 +964,8 @@ mail_config_uri_renamed (GCompareFunc uri_cmp, const char *old, const char *new)
char *cachenames[] = { "config/hidestate-",
"config/et-expanded-",
"config/et-header-",
- "*views/mail/current_view-",
- "*views/mail/custom_view-",
+ "*views/current_view-",
+ "*views/custom_view-",
NULL };
iter = e_list_get_iterator ((EList *) config->accounts);
@@ -1059,13 +1059,15 @@ mail_config_folder_to_safe_url (CamelFolder *folder)
char *
mail_config_folder_to_cachename (CamelFolder *folder, const char *prefix)
{
- char *url, *filename;
+ char *url, *basename, *filename;
+ const char *evolution_dir;
+
+ evolution_dir = mail_component_peek_base_directory (mail_component_peek ());
url = mail_config_folder_to_safe_url (folder);
- filename = g_strdup_printf ("%s/config/%s%s",
- mail_component_peek_base_directory (mail_component_peek ()),
- prefix,
- url);
+ basename = g_strdup_printf ("%s%s", prefix, url);
+ filename = g_build_filename (evolution_dir, "mail", "config", basename, NULL);
+ g_free (basename);
g_free (url);
return filename;