If the url path is "/" and the folder path is "/", just LIST "" "*" (this
2000-08-25 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_get_subfolder_names_internal): If the url path is "/" and the folder path is "/", just LIST "" "*" (this should fix some cyrus imapd problems). Also, INBOX is case insensitive so use g_strcasecmp svn path=/trunk/; revision=5038
This commit is contained in:
committed by
Jeffrey Stedfast
parent
a4852041b4
commit
a70be7b583
@ -3,7 +3,8 @@
|
||||
* providers/imap/camel-imap-folder.c
|
||||
(imap_get_subfolder_names_internal): If the url path is "/" and
|
||||
the folder path is "/", just LIST "" "*" (this should fix some
|
||||
cyrus imapd problems)
|
||||
cyrus imapd problems). Also, INBOX is case insensitive so use
|
||||
g_strcasecmp
|
||||
|
||||
2000-08-24 Lauris Kaplinski <lauris@helixcode.com>
|
||||
|
||||
|
||||
@ -750,7 +750,7 @@ imap_get_subfolder_names_internal (CamelFolder *folder, CamelException *ex)
|
||||
if (url && url->path) {
|
||||
if (!strcmp (folder->full_name, url->path + 1))
|
||||
namespace = g_strdup (url->path + 1);
|
||||
else if (!strcmp (folder->full_name, "INBOX"))
|
||||
else if (!g_strcasecmp (folder->full_name, "INBOX"))
|
||||
namespace = g_strdup (url->path + 1); /* FIXME: erm...not sure */
|
||||
else
|
||||
namespace = g_strdup_printf ("%s%s%s", url->path + 1, dir_sep, folder->full_name);
|
||||
@ -765,7 +765,7 @@ imap_get_subfolder_names_internal (CamelFolder *folder, CamelException *ex)
|
||||
if (*path) {
|
||||
if (!strcmp (folder->full_name, path))
|
||||
namespace = g_strdup (path);
|
||||
else if (!strcmp (folder->full_name, "INBOX"))
|
||||
else if (!g_strcasecmp (folder->full_name, "INBOX"))
|
||||
namespace = g_strdup (path); /* FIXME: erm...not sure */
|
||||
else
|
||||
namespace = g_strdup_printf ("%s%s%s", path, dir_sep, folder->full_name);
|
||||
|
||||
Reference in New Issue
Block a user