+2001-03-27 Jeffrey Stedfast <fejj@ximian.com>
+
+ * providers/pop3/camel-pop3-folder.c (pop3_sync): If we aren't
+ going to even check the resp/free buffer that gets returned from
+ camel_pop3_command, don't even bother using it. Send in NULL
+ instead.
+ (pop3_get_message): Check to make sure that the `result' string is
+ non-NULL. It's possible that some POP servers may return with
+ "+OK\r\n<message>..." rather than the expected
+ "+OK ### octets\r\n<message>..."
+
2001-03-27 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (camel_folder_summary_finalize): Unref
## Process this file with automake to produce Makefile.in
-SUBDIRS = providers tests
+SUBDIRS = providers #tests
libcamelincludedir = $(includedir)/camel
providerdir = $(libdir)/evolution/camel-providers/$(VERSION)
CamelPop3Folder *pop3_folder;
CamelPop3Store *pop3_store;
int i, status;
- char *resp;
-
+
if (!expunge)
return;
for (i = 0; i < pop3_folder->uids->len; i++) {
if (pop3_folder->flags[i] & CAMEL_MESSAGE_DELETED) {
- status = camel_pop3_command (pop3_store, &resp, ex,
+ status = camel_pop3_command (pop3_store, NULL, ex,
"DELE %d", i + 1);
if (status != CAMEL_POP3_OK)
return;
}
/* this should be "nnn octets" ? */
- if (sscanf(result, "%d", &total) != 1)
+ if (result && sscanf (result, "%d", &total) != 1)
total = 0;
g_free (result);