aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
author8 <NotZed@Ximian.com>2001-10-28 13:10:56 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-28 13:10:56 +0800
commit78b66af8ce96ab41e476d3ebf36cd85fced6d781 (patch)
tree271e7655e09c1a0a89798739e941d519765cfaa9 /camel/providers/imap
parentb1d36fe27d0434b98176a670ca67e64e5d4bb11e (diff)
downloadgsoc2013-evolution-78b66af8ce96ab41e476d3ebf36cd85fced6d781.tar.gz
gsoc2013-evolution-78b66af8ce96ab41e476d3ebf36cd85fced6d781.tar.zst
gsoc2013-evolution-78b66af8ce96ab41e476d3ebf36cd85fced6d781.zip
Use path not protocol as the path part of the uri of the folder_created
2001-10-28 <NotZed@Ximian.com> * providers/local/camel-local-folder.c (camel_local_folder_construct): Use path not protocol as the path part of the uri of the folder_created event. * providers/local/camel-maildir-store.c (scan_dir): If FAST is set, dont try and scan for unread counts. * providers/local/camel-local-store.c (create_folder): Implement, just return the folderinfo of the folder matched, not all of it. * camel-store.c (camel_store_rename_folder): Rename the camelfolders before emitting the folderchanged event (otherwise vstore fails to pick up change. * camel-store.c (camel_store_init): Always use a default dir_sep of '/'. * camel-store.h (struct _CamelStore): Added a dir_sep to the base store so rename and whatnot can work, temporary fix for mixed dir separator in folder name api's. * providers/imap/camel-map-store.c: (imap_connect_online): Also set the store's dir_sep here. (imap_connect_offline): " svn path=/trunk/; revision=14275
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-store.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 78fed3b5e6..aa7fc5fb17 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -666,6 +666,7 @@ imap_connect_online (CamelService *service, CamelException *ex)
sep = imap_parse_string (&name, &len);
if (sep) {
store->dir_sep = *sep;
+ ((CamelStore *)store)->dir_sep = store->dir_sep;
g_free (sep);
}
}
@@ -700,8 +701,10 @@ imap_connect_online (CamelService *service, CamelException *ex)
imap_parse_list_response (store, result, NULL, &store->dir_sep, NULL);
g_free (result);
}
- if (!store->dir_sep)
+ if (!store->dir_sep) {
store->dir_sep = '/'; /* Guess */
+ ((CamelStore *)store)->dir_sep = store->dir_sep;
+ }
}
/* canonicalize the namespace to end with dir_sep */
@@ -792,6 +795,7 @@ imap_connect_offline (CamelService *service, CamelException *ex)
camel_file_util_decode_string (storeinfo, &store->namespace);
camel_file_util_decode_uint32 (storeinfo, &tmp);
store->dir_sep = tmp;
+ ((CamelStore *)store)->dir_sep = tmp;
/* Get subscribed folders */
store->subscribed_folders = g_hash_table_new (g_str_hash, g_str_equal);