aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test10.c
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-23 09:45:49 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-23 09:45:49 +0800
commitfbcdf475521aaf13049ddc7c9f96bb0c9ed9b870 (patch)
treed88c2cb9c90118a12e441eb42c67c26ef4275b1a /tests/test10.c
parent15e6a36cefc4c87efd5314aab7e27ee10c4dbeb6 (diff)
downloadgsoc2013-evolution-fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870.tar
gsoc2013-evolution-fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870.tar.gz
gsoc2013-evolution-fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870.tar.bz2
gsoc2013-evolution-fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870.tar.lz
gsoc2013-evolution-fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870.tar.xz
gsoc2013-evolution-fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870.tar.zst
gsoc2013-evolution-fbcdf475521aaf13049ddc7c9f96bb0c9ed9b870.zip
use the real summary file path instead of a stupid hardcoded one. Fixes
2000-01-22 bertrand <bertrand@helixcode.com> * 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
Diffstat (limited to 'tests/test10.c')
-rw-r--r--tests/test10.c23
1 files changed, 21 insertions, 2 deletions
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;