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.

svn path=/trunk/; revision=6065
This commit is contained in:
Dan Winship
2000-10-20 01:06:50 +00:00
parent bbc7b8866a
commit 30a4e35370
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2000-10-19 Dan Winship <danw@helixcode.com>
* 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.

View File

@ -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);
}