aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-command.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-02-05 07:36:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-02-05 07:36:01 +0800
commitfb9018a61e7e52de12b525ecece617315611ff44 (patch)
tree7509ab7d56e6ea34c935d0852ee26f1890a57c3f /camel/providers/imap/camel-imap-command.c
parentbb0bada2315a9ca85c6669350ba0c7d911eaf64e (diff)
downloadgsoc2013-evolution-fb9018a61e7e52de12b525ecece617315611ff44.tar
gsoc2013-evolution-fb9018a61e7e52de12b525ecece617315611ff44.tar.gz
gsoc2013-evolution-fb9018a61e7e52de12b525ecece617315611ff44.tar.bz2
gsoc2013-evolution-fb9018a61e7e52de12b525ecece617315611ff44.tar.lz
gsoc2013-evolution-fb9018a61e7e52de12b525ecece617315611ff44.tar.xz
gsoc2013-evolution-fb9018a61e7e52de12b525ecece617315611ff44.tar.zst
gsoc2013-evolution-fb9018a61e7e52de12b525ecece617315611ff44.zip
Use g_ascii_strdown() instead of g_strdown, since g_strdown is deprecated.
2003-02-04 Jeffrey Stedfast <fejj@ximian.com> * providers/imap/camel-imap-utils.c (imap_parse_body): Use g_ascii_strdown() instead of g_strdown, since g_strdown is deprecated. (imap_parse_body): Same. * providers/imap/camel-imap-folder.c (decode_internaldate): Use strncasecmp() here too. (parse_fetch_response): And here. (camel_imap_folder_selected): Here too. * providers/imap/camel-imap-utils.c (imap_namespace_decode): Use strncasecmp() instead of g_strncasecmp() because the latter is deprecated. * providers/imap/camel-imap-store.c (imap_get_capability): Again here. (hash_folder_name): Here too. (compare_folder_name): And here. (get_folder_online): Again. (get_folder_offline): And again. * providers/imap/camel-imap-folder.c (camel_imap_folder_selected): Same as below again. * providers/imap/camel-imap-command.c (camel_imap_response_free): Same as below. * providers/smtp/camel-smtp-transport.c (smtp_data): Use strcasecmp() because g_strcasecmp() is deprecated. * camel-url.c (camel_url_new_with_base): Use g_ascii_strdown() instead of g_strdown, since g_strdown is deprecated. 2003-01-28 Jeffrey Stedfast <fejj@ximian.com> * camel-sasl-gssapi.c (gssapi_challenge): Pass in some default flags to gss_init_sec_context() (these default flags are defined as a MUST in rfc1964). svn path=/trunk/; revision=19748
Diffstat (limited to 'camel/providers/imap/camel-imap-command.c')
-rw-r--r--camel/providers/imap/camel-imap-command.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/camel/providers/imap/camel-imap-command.c b/camel/providers/imap/camel-imap-command.c
index 25d7bbd022..550bd8ba53 100644
--- a/camel/providers/imap/camel-imap-command.c
+++ b/camel/providers/imap/camel-imap-command.c
@@ -301,7 +301,7 @@ camel_imap_command_response (CamelImapStore *store, char **response,
switch (*respbuf) {
case '*':
- if (!g_strncasecmp (respbuf, "* BYE", 5)) {
+ if (!strncasecmp (respbuf, "* BYE", 5)) {
/* Connection was lost, no more data to fetch */
camel_service_disconnect (CAMEL_SERVICE (store), FALSE, NULL);
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
@@ -319,7 +319,7 @@ camel_imap_command_response (CamelImapStore *store, char **response,
respbuf = imap_read_untagged (store, respbuf, ex);
if (!respbuf)
type = CAMEL_IMAP_RESPONSE_ERROR;
- else if (!g_strncasecmp(respbuf, "* OK [ALERT]", 12)) {
+ else if (!strncasecmp (respbuf, "* OK [ALERT]", 12)) {
char *msg;
/* for imap ALERT codes, account user@host */
@@ -382,13 +382,13 @@ imap_read_response (CamelImapStore *store, CamelException *ex)
if (*respbuf == '+')
return response;
p = strchr (respbuf, ' ');
- if (p && !g_strncasecmp (p, " OK", 3))
+ if (p && !strncasecmp (p, " OK", 3))
return response;
/* We should never get BAD, or anything else but +, OK, or NO
* for that matter.
*/
- if (!p || g_strncasecmp (p, " NO", 3) != 0) {
+ if (!p || strncasecmp (p, " NO", 3) != 0) {
g_warning ("Unexpected response from IMAP server: %s",
respbuf);
camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_UNAVAILABLE,
@@ -554,9 +554,9 @@ 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 (!g_strcasecmp (p, " EXISTS")) {
+ if (!strcasecmp (p, " EXISTS")) {
exists = number;
- } else if (!g_strcasecmp (p, " EXPUNGE")) {
+ } else if (!strcasecmp (p, " EXPUNGE")) {
if (!expunged) {
expunged = g_array_new (FALSE, FALSE,
sizeof (int));
@@ -641,7 +641,7 @@ camel_imap_response_extract (CamelImapStore *store,
if (*resp == ' ')
resp = (char *) imap_next_word (resp);
- if (!g_strncasecmp (resp, type, len))
+ if (!strncasecmp (resp, type, len))
break;
}