aboutsummaryrefslogtreecommitdiffstats
path: root/camel
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
parente526479d4a78044a375a8752c850d0b365753f67 (diff)
downloadgsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.tar
gsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.tar.gz
gsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.tar.bz2
gsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.tar.lz
gsoc2013-evolution-5cf01dc46e0f95d9b327bcf67d478548954abbb6.tar.xz
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')
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/providers/imap4/camel-imap4-utils.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6422ecd063..455c704c5a 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
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 ('/').
+
* providers/imap4/camel-imap4-stream.c
(camel_imap4_stream_literal): Update stream->inptr after fetching
the literal chunk.
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