aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-mbox-store.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-10-02 02:09:53 +0800
committerDan Winship <danw@src.gnome.org>2001-10-02 02:09:53 +0800
commit0b2cc6633c190b8433ea0c5ef818697ffdf51744 (patch)
tree908d2e69cad1bef000cb90de68b35a9401a8ee24 /camel/providers/local/camel-mbox-store.c
parent505c37cb92dffa5c27d465bc597420367e272880 (diff)
downloadgsoc2013-evolution-0b2cc6633c190b8433ea0c5ef818697ffdf51744.tar
gsoc2013-evolution-0b2cc6633c190b8433ea0c5ef818697ffdf51744.tar.gz
gsoc2013-evolution-0b2cc6633c190b8433ea0c5ef818697ffdf51744.tar.bz2
gsoc2013-evolution-0b2cc6633c190b8433ea0c5ef818697ffdf51744.tar.lz
gsoc2013-evolution-0b2cc6633c190b8433ea0c5ef818697ffdf51744.tar.xz
gsoc2013-evolution-0b2cc6633c190b8433ea0c5ef818697ffdf51744.tar.zst
gsoc2013-evolution-0b2cc6633c190b8433ea0c5ef818697ffdf51744.zip
Don't munge the URL; CamelSession's caching relies on it not changing.
* providers/local/camel-local-store.c (construct): Don't munge the URL; CamelSession's caching relies on it not changing. Instead, add a toplevel_dir field to CamelLocalStore, and set that to the path, but always ending with /. (camel_local_store_finalize): Free toplevel_dir (camel_local_store_get_toplevel_dir): Return toplevel_dir rather than url->path. * providers/local/*: Lots of s/url->path/toplevel_dir/ * providers/local/camel-spool-store.c (construct): Likewise, don't try to strip a trailing / from url->path here, but I didn't make the corresponding toplevel_dir change, because there's no good reason someone should expect "/var/spool/mail/danw/" to work since that's not a directory. svn path=/trunk/; revision=13264
Diffstat (limited to 'camel/providers/local/camel-mbox-store.c')
-rw-r--r--camel/providers/local/camel-mbox-store.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c
index adf6806510..0cebdf4450 100644
--- a/camel/providers/local/camel-mbox-store.c
+++ b/camel/providers/local/camel-mbox-store.c
@@ -84,7 +84,7 @@ get_folder(CamelStore *store, const char *folder_name, guint32 flags, CamelExcep
if (camel_exception_is_set(ex))
return NULL;
- name = g_strdup_printf("%s%s", CAMEL_SERVICE(store)->url->path, folder_name);
+ name = g_strdup_printf("%s%s", CAMEL_LOCAL_STORE(store)->toplevel_dir, folder_name);
if (stat(name, &st) == -1) {
int fd;
@@ -132,7 +132,7 @@ delete_folder (CamelStore *store, const char *folder_name, CamelException *ex)
char *name;
struct stat st;
- name = g_strdup_printf ("%s%s", CAMEL_SERVICE (store)->url->path, folder_name);
+ name = g_strdup_printf ("%s%s", CAMEL_LOCAL_STORE (store)->toplevel_dir, folder_name);
if (stat (name, &st) == -1) {
camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
_("Could not delete folder `%s':\n%s"),