aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
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 /camel/providers/imap
parent2f73c4665ebfefb1b44918d156658b284769bbb8 (diff)
downloadgsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar.gz
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar.bz2
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar.lz
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar.xz
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.tar.zst
gsoc2013-evolution-b14b1bfac1a5097036d2ddb8d5fe464515313c78.zip
Read the full server reply when we SELECT mailboxes.
svn path=/trunk/; revision=3635
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-store.c8
1 files changed, 5 insertions, 3 deletions
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;