diff options
Diffstat (limited to 'camel/providers/imap')
-rw-r--r-- | camel/providers/imap/camel-imap-command.c | 2 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 6 | ||||
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 20 |
3 files changed, 14 insertions, 14 deletions
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c index 0e8db51896..eeb3ecd302 100644 --- a/camel/providers/imap/camel-imap-command.c +++ b/camel/providers/imap/camel-imap-command.c @@ -549,7 +549,7 @@ camel_imap_response_free (CamelImapStore *store, CamelImapResponse *response) if (response->folder) { /* Check if it's something we need to handle. */ number = strtoul (resp + 2, &p, 10); - if (!strcasecmp (p, " EXISTS")) { + if (!g_ascii_strcasecmp (p, " EXISTS")) { exists = number; } else if (!strcasecmp (p, " EXPUNGE")) { if (!expunged) { diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 189844dfec..229fbbb82b 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -371,7 +371,7 @@ camel_imap_folder_selected (CamelFolder *folder, CamelImapResponse *response, val = strtoul (resp + 2, &resp, 10); if (val == 0) continue; - if (!strcasecmp (resp, " EXISTS")) { + if (!g_ascii_strcasecmp (resp, " EXISTS")) { /* Another one?? */ exists = val; continue; @@ -512,7 +512,7 @@ imap_refresh_info (CamelFolder *folder, CamelException *ex) * should do it. */ CAMEL_SERVICE_LOCK (imap_store, connect_lock); if (imap_store->current_folder != folder - || strcasecmp(folder->full_name, "INBOX") == 0) { + || g_ascii_strcasecmp(folder->full_name, "INBOX") == 0) { response = camel_imap_command (imap_store, folder, ex, NULL); if (response) { camel_imap_folder_selected (folder, response, ex); @@ -528,7 +528,7 @@ imap_refresh_info (CamelFolder *folder, CamelException *ex) #if 0 /* on some servers need to CHECKpoint INBOX to recieve new messages?? */ /* rfc2060 suggests this, but havent seen a server that requires it */ - if (strcasecmp(folder->full_name, "INBOX") == 0) { + if (g_ascii_strcasecmp(folder->full_name, "INBOX") == 0) { response = camel_imap_command (imap_store, folder, ex, "CHECK"); camel_imap_response_free (imap_store, response); } diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index eb66f48725..52e0dfba89 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -483,7 +483,7 @@ imap_get_capability (CamelService *service, CamelException *ex) continue; } for (i = 0; capabilities[i].name; i++) { - if (strcasecmp (capa, capabilities[i].name) == 0) { + if (g_ascii_strcasecmp (capa, capabilities[i].name) == 0) { store->capabilities |= capabilities[i].flag; break; } @@ -1452,7 +1452,7 @@ imap_connect_online (CamelService *service, CamelException *ex) for (i = 0; i < folders->len; i++) { CamelFolderInfo *fi = folders->pdata[i]; - haveinbox = haveinbox || !strcasecmp (fi->full_name, "INBOX"); + haveinbox = haveinbox || !g_ascii_strcasecmp (fi->full_name, "INBOX"); if (fi->flags & (CAMEL_IMAP_FOLDER_MARKED | CAMEL_IMAP_FOLDER_UNMARKED)) store->capabilities |= IMAP_CAPABILITY_useful_lsub; @@ -1472,7 +1472,7 @@ imap_connect_online (CamelService *service, CamelException *ex) CamelFolderInfo *fi = folders->pdata[i]; /* this should always be TRUE if folders->len > 0 */ - if (!strcasecmp (fi->full_name, "INBOX")) { + if (!g_ascii_strcasecmp (fi->full_name, "INBOX")) { haveinbox = TRUE; /* if INBOX is marked as \NoSelect then it is probably @@ -1817,7 +1817,7 @@ get_folder_online (CamelStore *store, const char *folder_name, guint32 flags, Ca if (!camel_imap_store_connected (imap_store, ex)) return NULL; - if (!strcasecmp (folder_name, "INBOX")) + if (!g_ascii_strcasecmp (folder_name, "INBOX")) folder_name = "INBOX"; /* Lock around the whole lot to check/create atomically */ @@ -2022,7 +2022,7 @@ get_folder_offline (CamelStore *store, const char *folder_name, !camel_service_connect (CAMEL_SERVICE (store), ex)) return NULL; - if (!strcasecmp (folder_name, "INBOX")) + if (!g_ascii_strcasecmp (folder_name, "INBOX")) folder_name = "INBOX"; storage_path = g_strdup_printf("%s/folders", imap_store->storage_path); @@ -2461,7 +2461,7 @@ get_subscribed_folders (CamelImapStore *imap_store, const char *top, CamelExcept if (si->flags & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED && imap_is_subfolder(camel_store_info_path(imap_store->summary, si), top)) { g_ptr_array_add(names, (char *)camel_imap_store_info_full_name(imap_store->summary, si)); - haveinbox = haveinbox || strcasecmp(camel_imap_store_info_full_name(imap_store->summary, si), "INBOX") == 0; + haveinbox = haveinbox || g_ascii_strcasecmp(camel_imap_store_info_full_name(imap_store->summary, si), "INBOX") == 0; } camel_store_summary_info_free((CamelStoreSummary *)imap_store->summary, si); } @@ -2728,7 +2728,7 @@ static guint folder_hash(const void *ap) { const char *a = ap; - if (strcasecmp(a, "INBOX") == 0) + if (g_ascii_strcasecmp(a, "INBOX") == 0) a = "INBOX"; return g_str_hash(a); @@ -2739,9 +2739,9 @@ static int folder_eq(const void *ap, const void *bp) const char *a = ap; const char *b = bp; - if (strcasecmp(a, "INBOX") == 0) + if (g_ascii_strcasecmp(a, "INBOX") == 0) a = "INBOX"; - if (strcasecmp(b, "INBOX") == 0) + if (g_ascii_strcasecmp(b, "INBOX") == 0) b = "INBOX"; return g_str_equal(a, b); @@ -2851,7 +2851,7 @@ get_folders(CamelStore *store, const char *top, guint32 flags, CamelException *e goto fail; for (i=0; i<folders->len && !haveinbox; i++) { fi = folders->pdata[i]; - haveinbox = (strcasecmp(fi->full_name, "INBOX")) == 0; + haveinbox = (g_ascii_strcasecmp(fi->full_name, "INBOX")) == 0; } if (!haveinbox && top == imap_store->namespace) { |