aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-11-03 04:21:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-11-03 04:21:07 +0800
commit5cf01dc46e0f95d9b327bcf67d478548954abbb6 (patch)
tree4112361640fa05f2440e6d5bcdd4566d30b9189a /camel/providers
parente526479d4a78044a375a8752c850d0b365753f67 (diff)
downloadgsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.tar.gz
gsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.tar.zst
gsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.zip
If namespaces is NULL, return the default folder delim ('/').
2004-11-02 Jeffrey Stedfast <fejj@novell.com> * providers/imap4/camel-imap4-utils.c (camel_imap4_get_path_delim): If namespaces is NULL, return the default folder delim ('/'). svn path=/trunk/; revision=27803
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap4/camel-imap4-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/providers/imap4/camel-imap4-utils.c b/camel/providers/imap4/camel-imap4-utils.c
index e8f0627ea2..c95438e95a 100644
--- a/camel/providers/imap4/camel-imap4-utils.c
+++ b/camel/providers/imap4/camel-imap4-utils.c
@@ -144,6 +144,9 @@ camel_imap4_get_path_delim (CamelIMAP4StoreSummary *s, const char *full_name)
size_t len;
char *top;
+ if (s->namespaces == NULL)
+ return '/';
+
if ((slash = strchr (full_name, '/')))
len = (slash - full_name);
else