aboutsummaryrefslogtreecommitdiff
path: root/libsylph/imap.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-01-22 05:22:16 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-01-22 05:22:16 +0000
commitb3c57b73cf6f65a7c919b83dc5700ad5585fed33 (patch)
tree59e8fa69a97e7df2e7d7236778a5f15bfd42765a /libsylph/imap.c
parent54b9fde1c8abae043942197356e43a99256faa6f (diff)
made IMAP INBOX case insensitive.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3191 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/imap.c')
-rw-r--r--libsylph/imap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsylph/imap.c b/libsylph/imap.c
index 11694f9b..bc4b3b89 100644
--- a/libsylph/imap.c
+++ b/libsylph/imap.c
@@ -2021,7 +2021,7 @@ static gint imap_scan_tree_recursive(IMAPSession *session, FolderItem *item,
folder_item_append(item, new_item);
}
- if (!strcmp(new_item->path, "INBOX")) {
+ if (!g_ascii_strcasecmp(new_item->path, "INBOX")) {
new_item->stype = F_INBOX;
folder->inbox = new_item;
} else if (!item->parent || item->stype == F_INBOX) {
@@ -2170,7 +2170,7 @@ static GSList *imap_parse_list(IMAPSession *session, const gchar *real_path,
new_item = folder_item_new(loc_name, loc_path);
if (strcasestr(flags, "\\Noinferiors") != NULL)
new_item->no_sub = TRUE;
- if (strcmp(buf, "INBOX") != 0 &&
+ if (g_ascii_strcasecmp(buf, "INBOX") != 0 &&
strcasestr(flags, "\\Noselect") != NULL)
new_item->no_select = TRUE;
@@ -2391,7 +2391,7 @@ static FolderItem *imap_create_folder(Folder *folder, FolderItem *parent,
session = imap_session_get(folder);
if (!session) return NULL;
- if (!parent->parent && strcmp(name, "INBOX") == 0)
+ if (!parent->parent && g_ascii_strcasecmp(name, "INBOX") == 0)
dirpath = g_strdup(name);
else if (parent->path)
dirpath = g_strconcat(parent->path, "/", name, NULL);
@@ -2416,7 +2416,7 @@ static FolderItem *imap_create_folder(Folder *folder, FolderItem *parent,
imap_path_separator_subst(imap_path, separator);
subst_char(new_name, '/', separator);
- if (strcmp(name, "INBOX") != 0) {
+ if (g_ascii_strcasecmp(name, "INBOX") != 0) {
GPtrArray *argbuf;
gint i;
gboolean exist = FALSE;