Back to the old way to avoid g_warnings, yay

2000-07-13  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-ops.c (real_fetch_mail): Back to the old way to avoid
	g_warnings, yay

svn path=/trunk/; revision=4138
This commit is contained in:
Jeffrey Stedfast
2000-07-13 05:35:29 +00:00
committed by Jeffrey Stedfast
parent f3b827786b
commit bc79d7668d
2 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-07-13 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (real_fetch_mail): Back to the old way to avoid
g_warnings, yay
2000-07-12 Chris Toshok <toshok@helixcode.com>
* mail-config.c (providers_config_new): fix some cut & paste bung.

View File

@ -243,13 +243,29 @@ real_fetch_mail (gpointer user_data)
uids = camel_folder_get_uids (sourcefolder, ex);
printf("got %d messages in source\n", uids->len);
for (i = 0; i < uids->len; i++) {
camel_folder_move_message_to (sourcefolder, uids->pdata[i], folder, ex);
CamelMimeMessage *msg;
msg = camel_folder_get_message (sourcefolder, uids->pdata[i], ex);
if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) {
async_mail_exception_dialog ("Unable to get new mail", ex, fb);
async_mail_exception_dialog ("Unable to get read message", ex, fb);
gtk_object_unref (GTK_OBJECT (sourcefolder));
gtk_object_unref (GTK_OBJECT (msg));
goto cleanup;
}
camel_folder_append_message (folder, msg, ex);
if (camel_exception_get_id (ex) != CAMEL_EXCEPTION_NONE) {
async_mail_exception_dialog ("Unable to write message", ex, fb);
gtk_object_unref (GTK_OBJECT (msg));
gtk_object_unref (GTK_OBJECT (sourcefolder));
goto cleanup;
}
camel_folder_delete_message (sourcefolder, uids->pdata[i], ex);
gtk_object_unref (GTK_OBJECT (msg));
}
camel_folder_free_uids (sourcefolder, uids);
camel_folder_sync (sourcefolder, TRUE, ex);