aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-11-22 11:12:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-11-22 11:12:10 +0800
commit239c8b9bf70de8b08efeb6b1346a877148d68c31 (patch)
treedf59b1fb4a72cfb92c533b22245eba020851e1b8
parentff14680378af5942c7738e296e7bc199ee7c75e9 (diff)
downloadgsoc2013-evolution-239c8b9bf70de8b08efeb6b1346a877148d68c31.tar
gsoc2013-evolution-239c8b9bf70de8b08efeb6b1346a877148d68c31.tar.gz
gsoc2013-evolution-239c8b9bf70de8b08efeb6b1346a877148d68c31.tar.bz2
gsoc2013-evolution-239c8b9bf70de8b08efeb6b1346a877148d68c31.tar.lz
gsoc2013-evolution-239c8b9bf70de8b08efeb6b1346a877148d68c31.tar.xz
gsoc2013-evolution-239c8b9bf70de8b08efeb6b1346a877148d68c31.tar.zst
gsoc2013-evolution-239c8b9bf70de8b08efeb6b1346a877148d68c31.zip
If we have a namespace of "", then always match any path.
2002-11-21 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-store-summary.c (camel_imap_store_summary_namespace_find_path): If we have a namespace of "", then always match any path. (camel_imap_store_summary_namespace_find_full): Same, for full names. Should address #33309 & friends. svn path=/trunk/; revision=18884
-rw-r--r--camel/ChangeLog8
-rw-r--r--camel/providers/imap/camel-imap-store-summary.c10
2 files changed, 14 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index f219e9da21..d3913173d6 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,11 @@
+2002-11-21 Not Zed <NotZed@Ximian.com>
+
+ * providers/imap/camel-imap-store-summary.c
+ (camel_imap_store_summary_namespace_find_path): If we have a
+ namespace of "", then always match any path.
+ (camel_imap_store_summary_namespace_find_full): Same, for full
+ names. Should address #33309 & friends.
+
2002-11-19 Radek Doulik <rodo@ximian.com>
* camel-mime-filter-tohtml.c (html_convert): added
diff --git a/camel/providers/imap/camel-imap-store-summary.c b/camel/providers/imap/camel-imap-store-summary.c
index ed6e5392a4..ce7f189a3a 100644
--- a/camel/providers/imap/camel-imap-store-summary.c
+++ b/camel/providers/imap/camel-imap-store-summary.c
@@ -401,8 +401,9 @@ camel_imap_store_summary_namespace_find_path(CamelImapStoreSummary *s, const cha
ns = s->namespace;
while (ns) {
len = strlen(ns->path);
- if (strncmp(ns->path, path, len) == 0
- && (path[len] == '/' || path[len] == 0))
+ if (len == 0
+ || (strncmp(ns->path, path, len) == 0
+ && (path[len] == '/' || path[len] == 0)))
break;
ns = NULL;
}
@@ -422,8 +423,9 @@ camel_imap_store_summary_namespace_find_full(CamelImapStoreSummary *s, const cha
while (ns) {
len = strlen(ns->full_name);
d(printf("find_full: comparing namespace '%s' to name '%s'\n", ns->full_name, full));
- if (strncmp(ns->full_name, full, len) == 0
- && (full[len] == ns->sep || full[len] == 0))
+ if (len == 0
+ || (strncmp(ns->full_name, full, len) == 0
+ && (full[len] == ns->sep || full[len] == 0)))
break;
ns = NULL;
}