diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-10-01 04:45:42 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-10-01 04:45:42 +0800 |
commit | 326d9cdc79b6b0df11cefbefc15a17a50a38c39f (patch) | |
tree | 0a87534b0c1c2221742d7b081a48fd9c40c1b059 /camel/camel-store.c | |
parent | 29cd9a0bef80716827a9800af6a764aa6fe21446 (diff) | |
download | gsoc2013-evolution-326d9cdc79b6b0df11cefbefc15a17a50a38c39f.tar.gz gsoc2013-evolution-326d9cdc79b6b0df11cefbefc15a17a50a38c39f.tar.zst gsoc2013-evolution-326d9cdc79b6b0df11cefbefc15a17a50a38c39f.zip |
Don't strip the namespace from the fi->full_name when hasing or creating
2002-09-30 Jeffrey Stedfast <fejj@ximian.com>
* camel-store.c (camel_folder_info_build): Don't strip the
namespace from the fi->full_name when hasing or creating fake
parent folders. Fixes a bug I found while trying to reproduce bug
#31456.
svn path=/trunk/; revision=18270
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r-- | camel/camel-store.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c index 1987ea4ddd..f7ae7cba78 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -874,25 +874,14 @@ camel_folder_info_build (GPtrArray *folders, const char *namespace, hash = g_hash_table_new (g_str_hash, g_str_equal); for (i = 0; i < folders->len; i++) { fi = folders->pdata[i]; - if (!strncmp (namespace, fi->full_name, nlen)) - name = fi->full_name + nlen; - else - name = fi->full_name; - if (*name == separator) - name++; - g_hash_table_insert (hash, name, fi); + g_hash_table_insert (hash, fi->full_name, fi); } /* Now find parents. */ for (i = 0; i < folders->len; i++) { fi = folders->pdata[i]; - if (!strncmp (namespace, fi->full_name, nlen)) - name = fi->full_name + nlen; - else - name = fi->full_name; - if (*name == separator) - name++; - + name = fi->full_name; + /* set the path if it isn't already set */ if (!fi->path) camel_folder_info_build_path (fi, separator); |