aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@src.gnome.org>2000-06-20 04:46:20 +0800
committerPeter Williams <peterw@src.gnome.org>2000-06-20 04:46:20 +0800
commitb14b1bfac1a5097036d2ddb8d5fe464515313c78 (patch)
tree2b262065fbf8d8f31e45d33da749a20c25717ba4
parent2f73c4665ebfefb1b44918d156658b284769bbb8 (diff)
downloadgsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar.gz
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar.zst
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.zip
Read the full server reply when we SELECT mailboxes.
svn path=/trunk/; revision=3635
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-store.c8
2 files changed, 11 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index b0b51b9259..df3be4b8ca 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2000-06-19 Peter Williams <peterw@curious-george.helixcode.com>
+
+ * providers/imap/camel-imap-store.c (camel_imap_command{,_extended}): When
+ SELECT'ing a folder for an IMAP command, use _extended to grab the entire
+ response (before we just used camel_imap_command and missed the OK codes)
+
2000-06-18 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-folder.c (imap_summary_get_by_uid):
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 72a5d7d8ac..77379f03d8 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -429,7 +429,7 @@ camel_imap_command (CamelImapStore *store, CamelFolder *folder, char **ret, char
char *r;
int s;
- s = camel_imap_command (store, folder, &r, "SELECT %s", folder->full_name);
+ s = camel_imap_command_extended (store, folder, &r, "SELECT %s", folder->full_name);
if (s != CAMEL_IMAP_OK) {
*ret = r;
return s;
@@ -445,6 +445,7 @@ camel_imap_command (CamelImapStore *store, CamelFolder *folder, char **ret, char
va_end (ap);
fprintf (stderr, "sending : %s %s\r\n", cmdid, cmdbuf);
+ fflush (stderr);
if (camel_stream_printf (store->ostream, "%s %s\r\n", cmdid, cmdbuf) == -1) {
g_free (cmdbuf);
@@ -464,7 +465,8 @@ camel_imap_command (CamelImapStore *store, CamelFolder *folder, char **ret, char
}
fprintf(stderr, "received: %s\n", respbuf ? respbuf : "(null)");
-
+ fflush (stderr);
+
status = camel_imap_status (cmdid, respbuf);
g_free (cmdid);
@@ -521,7 +523,7 @@ camel_imap_command_extended (CamelImapStore *store, CamelFolder *folder, char **
char *r;
int s;
- s = camel_imap_command (store, folder, &r, "SELECT %s", folder->full_name);
+ s = camel_imap_command_extended (store, folder, &r, "SELECT %s", folder->full_name);
if (s != CAMEL_IMAP_OK) {
*ret = r;
return s;