diff options
author | S.ÃaÄlar Onur <caglar@uludag.org.tr> | 2004-12-01 11:03:09 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-12-01 11:03:09 +0800 |
commit | b53f63d528ae0b1f4567b997d7a74552c370640f (patch) | |
tree | 861c3caf4afc0fc5f144e7cdb70529323a7a7a01 /camel/providers/imap | |
parent | 218b3bf88cfa2576e79b1a3a548d6d46493d982f (diff) | |
download | gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar.gz gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar.bz2 gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar.lz gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar.xz gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar.zst gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.zip |
** See bug #69446.
2004-11-28 S.ÃaÄlar Onur <caglar@uludag.org.tr>
** See bug #69446.
* evolution-2.0.2/camel/camel-charset-map.c (camel_charset_iso_to_windows)
* evolution-2.0.2/camel/camel-filter-search.c (check_header)
* evolution-2.0.2/camel/camel-folder-search.c (check_header)
* evolution-2.0.2/camel/camel-folder-summary.c (message_info_new,summary_build_content_info,camel_system_flag)
* evolution-2.0.2/camel/camel-html-parser.c (camel_html_parser_attr)
* evolution-2.0.2/camel/camel-mime-filter-enriched.c (param_parse,camel_mime_filter_enriched_init)
* evolution-2.0.2/camel/camel-mime-parser.c (folder_scan_step,main)
* evolution-2.0.2/camel/camel-mime-utils.c (camel_header_param,camel_header_set_param,camel_content_type_is,camel_transfer_encoding_from_string,camel_conten
t_type_format,camel_content_type_simple,camel_header_decode_date,header_raw_find_node)
* evolution-2.0.2/camel/camel-sasl-digest-md5.c (decode_data_type)
* evolution-2.0.2/camel/providers/imap/camel-imap-command.c (camel_imap_response_free)
* evolution-2.0.2/camel/providers/imap/camel-imap-folder.c (camel_imap_folder_new,camel_imap_folder_selected,imap_refresh_info,camel_imap_folder_new,camel_i
map_folder_selected)
* evolution-2.0.2/camel/providers/imap/camel-imap-store.c (imap_get_capability,imap_connect_online,get_folder_online,get_folder_offline,get_subscribed_folde
rs,folder_hash,get_folders)
* evolution-2.0.2/camel/providers/pop3/camel-pop3-store.c (get_folder)
* evolution-2.0.2/camel/tests/lib/folders.c: (test_folder_message_ops)
some strcasecmp() calls changed with g_ascii_strcasecmp() for Turkish
character conversiton problems [ http://www.i18nguy.com/unicode/turkish-i18n.html ]
svn path=/trunk/; revision=28019
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) { |