From eb75c1615c50dca8e06a0ba6ed46b5662c0ff0aa Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sun, 26 Mar 2000 02:09:21 +0000 Subject: update for summary format changes svn path=/trunk/; revision=2163 --- tests/test9.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/test9.c b/tests/test9.c index d645ec821a..cb4cd9de61 100644 --- a/tests/test9.c +++ b/tests/test9.c @@ -7,7 +7,6 @@ #include "camel-mbox-summary.h" #include "camel-log.h" #include "camel-exception.h" -#include "md5-utils.h" #include #include #include @@ -56,27 +55,23 @@ main (int argc, char**argv) mbox_summary_info = parsed_information_to_mbox_summary (message_info_array); - sum1 = g_new (CamelMboxSummary, 1); + sum1 = CAMEL_MBOX_SUMMARY (gtk_object_new (camel_mbox_summary_get_type (), NULL)); - 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); + camel_mbox_summary_save (sum1, "ev-summary.mbox", ex); - sum2 = camel_mbox_load_summary ("ev-summary.mbox", ex); + sum2 = camel_mbox_summary_load ("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); + " From : %s\n", i, msg_info->headers.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