diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-07-29 08:18:09 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-07-29 08:18:09 +0800 |
commit | dca8b620c8b20654cc47cff442aa7f2c4d61257a (patch) | |
tree | 29634dbb11e6d072f79c39dda08146d6d51dbfeb /camel/providers/imap/camel-imap-store.c | |
parent | 0ba155afa877024f8b12277c98a0838448437ea1 (diff) | |
download | gsoc2013-evolution-dca8b620c8b20654cc47cff442aa7f2c4d61257a.tar gsoc2013-evolution-dca8b620c8b20654cc47cff442aa7f2c4d61257a.tar.gz gsoc2013-evolution-dca8b620c8b20654cc47cff442aa7f2c4d61257a.tar.bz2 gsoc2013-evolution-dca8b620c8b20654cc47cff442aa7f2c4d61257a.tar.lz gsoc2013-evolution-dca8b620c8b20654cc47cff442aa7f2c4d61257a.tar.xz gsoc2013-evolution-dca8b620c8b20654cc47cff442aa7f2c4d61257a.tar.zst gsoc2013-evolution-dca8b620c8b20654cc47cff442aa7f2c4d61257a.zip |
fixed a few logic errors
svn path=/trunk/; revision=4410
Diffstat (limited to 'camel/providers/imap/camel-imap-store.c')
-rw-r--r-- | camel/providers/imap/camel-imap-store.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c index a1df1b2cd1..a46903d975 100644 --- a/camel/providers/imap/camel-imap-store.c +++ b/camel/providers/imap/camel-imap-store.c @@ -652,7 +652,7 @@ camel_imap_status (char *cmdid, char *respbuf) if (respbuf) { if (!strncmp (respbuf, cmdid, strlen (cmdid))) { - retcode = imap_next_token (respbuf); + retcode = imap_next_word (respbuf); if (!strncmp (retcode, "OK", 2)) return CAMEL_IMAP_OK; @@ -906,7 +906,7 @@ camel_imap_command_extended (CamelImapStore *store, CamelFolder *folder, char ** d(fprintf (stderr, "*** We may have found a 'RECENT' flag: %s\n", respbuf)); /* Make sure it's in the form: "* %d RECENT" */ rcnt = imap_next_word (respbuf); - if (*rcnt >= '0' || *rcnt <= '9' && !strncmp ("RECENT", imap_next_word (rcnt), 6)) + if (*rcnt >= '0' && *rcnt <= '9' && !strncmp ("RECENT", imap_next_word (rcnt), 6)) recent = atoi (rcnt); } } |