From: Dan Winship Date: Fri, 20 Oct 2000 01:06:16 +0000 (+0000) Subject: Fix a bug with "INBOX" (or anything else with NIL hierarchy separator) as X-Git-Tag: upstream/3.7.4~11351 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=538afaf5f4ad64914aef811b2556ac5c3f7f972a;p=platform%2Fupstream%2Fevolution-data-server.git Fix a bug with "INBOX" (or anything else with NIL hierarchy separator) as * providers/imap/camel-imap-utils.c (imap_parse_list_response): Fix a bug with "INBOX" (or anything else with NIL hierarchy separator) as the namespace. --- diff --git a/camel/ChangeLog b/camel/ChangeLog index 380bd9a..f5367d2 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,9 @@ 2000-10-19 Dan Winship + * providers/imap/camel-imap-utils.c (imap_parse_list_response): + Fix a bug with "INBOX" (or anything else with NIL hierarchy + separator) as the namespace. + * providers/imap/camel-imap-folder.c (imap_refresh_info): Emit message_changed and folder_changed as appropriate. diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index 98c8d63..e4d8bfe 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -97,7 +97,7 @@ imap_parse_list_response (const char *buf, const char *namespace, char **flags, /* chop out the folder prefix */ if (*namespace && !strncmp (*folder, namespace, strlen (namespace))) { f = *folder + strlen (namespace); - if (!strncmp (f, *sep, strlen (*sep))) + if (*sep && !strncmp (f, *sep, strlen (*sep))) f += strlen (*sep); memmove (*folder, f, strlen (f) + 1); }