aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-utils.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-08 04:32:27 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-08 04:32:27 +0800
commit35bb85fdf67039394e1dc20ac7d09fdaaa805c54 (patch)
treea7424bde6d1a63b35c2c5d227dc953594dc3d289 /camel/providers/imap/camel-imap-utils.c
parent03baf85a6a3d42573bee99adcad5ca919cd63659 (diff)
downloadgsoc2013-evolution-35bb85fdf67039394e1dc20ac7d09fdaaa805c54.tar
gsoc2013-evolution-35bb85fdf67039394e1dc20ac7d09fdaaa805c54.tar.gz
gsoc2013-evolution-35bb85fdf67039394e1dc20ac7d09fdaaa805c54.tar.bz2
gsoc2013-evolution-35bb85fdf67039394e1dc20ac7d09fdaaa805c54.tar.lz
gsoc2013-evolution-35bb85fdf67039394e1dc20ac7d09fdaaa805c54.tar.xz
gsoc2013-evolution-35bb85fdf67039394e1dc20ac7d09fdaaa805c54.tar.zst
gsoc2013-evolution-35bb85fdf67039394e1dc20ac7d09fdaaa805c54.zip
If we are trying to get a subfolder listing of the root folder, always
2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_get_subfolder_names_internal): If we are trying to get a subfolder listing of the root folder, always make sure INBOX is there... * providers/imap/camel-imap-utils.c (imap_parse_list_response): Check for NIL as a directory separator. svn path=/trunk/; revision=4582
Diffstat (limited to 'camel/providers/imap/camel-imap-utils.c')
-rw-r--r--camel/providers/imap/camel-imap-utils.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c
index f1c4c17782..3378758a69 100644
--- a/camel/providers/imap/camel-imap-utils.c
+++ b/camel/providers/imap/camel-imap-utils.c
@@ -94,9 +94,13 @@ imap_parse_list_response (char *buf, char *namespace, char **flags, char **sep,
/* get the directory separator */
word = imap_next_word (ep);
if (*word) {
- for (ep = word; *ep && *ep != ' '; ep++);
- *sep = g_strndup (word, (gint)(ep - word));
- string_unquote (*sep);
+ if (!strncmp (word, "NIL", 3)) {
+ *sep = NULL;
+ } else {
+ for (ep = word; *ep && *ep != ' '; ep++);
+ *sep = g_strndup (word, (gint)(ep - word));
+ string_unquote (*sep);
+ }
} else {
return FALSE;
}