From fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870 Mon Sep 17 00:00:00 2001 From: bertrand Date: Sun, 23 Jan 2000 01:45:49 +0000 Subject: use the real summary file path instead of a stupid hardcoded one. Fixes 2000-01-22 bertrand * camel/providers/mbox/camel-mbox-folder.c (_check_get_or_maybe_generate_summary_file): use the real summary file path instead of a stupid hardcoded one. Fixes yet another bug. * camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary): don't forget to copy the date too. Fix a very annoying bug. * camel/providers/mbox/camel-mbox-folder.c (_append_message): implemented. A lot of fixes too. Works now. (_get_uid_list): implemented. svn path=/trunk/; revision=1609 --- tests/test10.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'tests/test10.c') diff --git a/tests/test10.c b/tests/test10.c index 07f0fdf81e..b223efb8ef 100644 --- a/tests/test10.c +++ b/tests/test10.c @@ -72,7 +72,7 @@ main (int argc, char**argv) gchar *store_url = "mbox:///tmp/evmail"; CamelFolder *folder; CamelMimeMessage *message; - + GList *uid_list; camel_debug_level = 10; gtk_init (&argc, &argv); @@ -88,11 +88,30 @@ main (int argc, char**argv) if (camel_exception_get_id (ex)) { printf ("Exception caught in camel_store_get_folder" "Full description : %s\n", camel_exception_get_description (ex)); + return -1; } + camel_folder_open (folder, FOLDER_OPEN_RW, ex); - + if (camel_exception_get_id (ex)) { + printf ("Exception caught when trying to open the folder" + "Full description : %s\n", camel_exception_get_description (ex)); + return -1; + } + message = create_sample_mime_message (); camel_folder_append_message (folder, message, ex); + if (camel_exception_get_id (ex)) { + printf ("Exception caught when trying to append a message to the folder" + "Full description : %s\n", camel_exception_get_description (ex)); + return -1; + } + + uid_list = camel_folder_get_uid_list (folder, ex); + while (uid_list) { + printf ("UID : %s\n", (gchar *)uid_list->data); + uid_list = uid_list->next; + } + camel_folder_close (folder, FALSE, ex); return 1; -- cgit v1.2.3