diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2000-05-20 00:17:13 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-20 00:17:13 +0800 |
commit | ae208c7e8ff0463666c52392553af2572a8ee9b5 (patch) | |
tree | eeccba976c4f17fca2c479cce3c14c9b657e2775 /tests/test11.c | |
parent | cfcf5e016ca8acab994c301101280331cab54a0d (diff) | |
download | gsoc2013-evolution-ae208c7e8ff0463666c52392553af2572a8ee9b5.tar.gz gsoc2013-evolution-ae208c7e8ff0463666c52392553af2572a8ee9b5.tar.zst gsoc2013-evolution-ae208c7e8ff0463666c52392553af2572a8ee9b5.zip |
A little vfolder test.
svn path=/trunk/; revision=3137
Diffstat (limited to 'tests/test11.c')
-rw-r--r-- | tests/test11.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/test11.c b/tests/test11.c index 25f7d88928..1323a5f90b 100644 --- a/tests/test11.c +++ b/tests/test11.c @@ -44,7 +44,7 @@ main (int argc, char**argv) camel_provider_load (session, "../camel/providers/mbox/.libs/libcamelmbox.so.0", ex); if (camel_exception_get_id (ex)) { - printf ("Exceptions suck\n"); + printf ("Exceptions suck: %s\n", camel_exception_get_description (ex)); return 1; } @@ -94,13 +94,15 @@ main (int argc, char**argv) CamelMimeMessage *m; printf("uid: %s\n", (char *) n->data); -#if 0 m = camel_folder_get_message_by_uid(folder, n->data, ex); if (camel_exception_get_id (ex)) { printf ("Cannot get message\n" "Full description : %s\n", camel_exception_get_description (ex)); + camel_exception_init(ex); } else { + +#if 1 camel_folder_append_message(outbox, m, ex); @@ -112,14 +114,20 @@ main (int argc, char**argv) printf("Removing matching message from source folder?\n"); camel_mime_message_set_flags(m, CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED); /* camel_mime_message_set_flags(m, CAMEL_MESSAGE_ANSWERED, CAMEL_MESSAGE_ANSWERED);*/ - } - camel_mime_message_unref(m); #endif + + } + if (m) + gtk_object_unref(m); n = g_list_next(n); } + camel_folder_close (outbox, TRUE, ex); camel_folder_close (folder, TRUE, ex); + gtk_object_unref((GtkObject *)outbox); + gtk_object_unref((GtkObject *)folder); + return 0; } |