From a57b12708dae1c8eff2906e853c28c243f280307 Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 9 Feb 2000 23:19:13 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'GNOME_APPLETS_1_1_3'. svn path=/tags/GNOME_APPLETS_1_1_3/; revision=1716 --- tests/test9.c | 85 ----------------------------------------------------------- 1 file changed, 85 deletions(-) delete mode 100644 tests/test9.c (limited to 'tests/test9.c') diff --git a/tests/test9.c b/tests/test9.c deleted file mode 100644 index 6776b0cc05..0000000000 --- a/tests/test9.c +++ /dev/null @@ -1,85 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ - - -#include "camel-mbox-folder.h" -#include "camel-mbox-parser.h" -#include "camel-mbox-utils.h" -#include "camel-mbox-summary.h" -#include "camel-log.h" -#include "camel-exception.h" -#include "md5-utils.h" -#include -#include -#include -#include -#include -#include -#include - -int -main (int argc, char**argv) -{ - GArray *message_info_array; - gint test_file_fd; - CamelException *ex; - CamelMboxSummary *sum1, *sum2; - GArray *mbox_summary_info; - CamelMboxSummaryInformation *msg_info; - int i; - guint32 next_uid; - guint32 mbox_file_size; - - //camel_debug_level = CAMEL_LOG_LEVEL_FULL_DEBUG; - camel_debug_level = 0; - - gtk_init (&argc, &argv); - camel_init (); - - ex = camel_exception_new (); - test_file_fd = open (argv[1], O_RDONLY); - message_info_array = camel_mbox_parse_file (test_file_fd, - "From ", - 0, - &mbox_file_size, - &next_uid, - TRUE, - NULL, - 0, - ex); - - close (test_file_fd); - camel_mbox_write_xev (argv[1], message_info_array, &mbox_file_size, 1, ex); - if (camel_exception_get_id (ex)) { - printf ("Exception caught in camel_mbox_write_xev : %s\n", camel_exception_get_description (ex)); - } - - - mbox_summary_info = - parsed_information_to_mbox_summary (message_info_array); - sum1 = g_new (CamelMboxSummary, 1); - - md5_get_digest_from_file (argv[1], sum1->md5_digest); - sum1->nb_message = mbox_summary_info->len; - - sum1->message_info = mbox_summary_info; - - camel_mbox_save_summary (sum1, "ev-summary.mbox", ex); - - sum2 = camel_mbox_load_summary ("ev-summary.mbox", ex); - - for (i=0; inb_message; i++) { - - msg_info = (CamelMboxSummaryInformation *)(sum1->message_info->data) + i; - printf ("Message %d :\n" - " From : %s\n", i, msg_info->sender); - } - - printf ("Taille du fichier mbox : %ld\n", mbox_file_size); - printf ("\t in the summary : %ld\n", sum1->mbox_file_size ); - - return 1; - -} - - - -- cgit v1.2.3