2000-06-20 Jeffrey Stedfast <fejj@helixcode.com>
+ * providers/imap/camel-imap-store.c (camel_imap_command_extended):
+ Now returns the last line of data that the server sends back as
+ well. This is needed for commands like SELECT (like Peter pointed
+ out).
+ (camel_imap_command): No longer checks for SELECT (no need)
+
* providers/imap/camel-imap-folder.c: Added namespace stuff
which we will need later on...
(imap_parse_subfolder_line): Convenience function for use in
get_subfolder_names()
- (imap_get_subfolder_names): Updated.
+ (imap_get_subfolder_names): Updated. Also changed it to use LIST
+ instead of LSUB (temporary change).
2000-06-19 Jeffrey Stedfast <fejj@helixcode.com>
return FALSE;
}
- if (!strcmp(folder->full_name, "INBOX"))
+ if (!strcmp (folder->full_name, "INBOX"))
return TRUE;
- if (camel_folder_get_subfolder(folder->parent_folder, folder->name, FALSE, ex))
+ if (camel_folder_get_subfolder (folder->parent_folder, folder->name, FALSE, ex))
return TRUE;
/* create the directory for the subfolder */
return FALSE;
}
- g_free(result);
+ g_free (result);
return TRUE;
}
va_list ap;
gint status = CAMEL_IMAP_OK;
- if (folder && store->current_folder != folder && strncmp (fmt, "SELECT", 6) &&
- strncmp (fmt, "STATUS", 6) && strncmp (fmt, "CREATE", 5) && strcmp (fmt, "CAPABILITY")) {
+ if (folder && store->current_folder != folder && strncmp (fmt, "STATUS", 6) &&
+ strncmp (fmt, "CREATE", 5) && strcmp (fmt, "CAPABILITY")) {
/* We need to select the correct mailbox first */
char *r;
int s;
if (s != CAMEL_IMAP_OK) {
*ret = r;
return s;
+ } else {
+ /* parse the read-write mode */
+#if 0
+ char *p;
+
+ p = strstr (result, "\n");
+ while (p) {
+ if (*(p + 1) == '*')
+ p = strstr (p, "\n");
+ else
+ break;
+ }
+
+ if (p) {
+ if (strstrcase (p, "READ-WRITE"))
+ mode =
+ }
+#endif
}
store->current_folder = folder;
g_ptr_array_add (data, respbuf);
}
- status = camel_imap_status (cmdid, respbuf);
+ if (respbuf) {
+ g_ptr_array_add (data, respbuf);
+ status = camel_imap_status (cmdid, respbuf);
+ } else {
+ status = CAMEL_IMAP_FAIL;
+ }
g_free (cmdid);
if (status == CAMEL_IMAP_OK) {