aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;