diff options
author | Dan Winship <danw@src.gnome.org> | 2000-03-26 10:09:21 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-03-26 10:09:21 +0800 |
commit | eb75c1615c50dca8e06a0ba6ed46b5662c0ff0aa (patch) | |
tree | 0928d743b211a292ea68cf5c9b70704e97dec2ec | |
parent | d78bd3829c186685849a336f0fc756bef554aec5 (diff) | |
download | gsoc2013-evolution-eb75c1615c50dca8e06a0ba6ed46b5662c0ff0aa.tar.gz gsoc2013-evolution-eb75c1615c50dca8e06a0ba6ed46b5662c0ff0aa.tar.zst gsoc2013-evolution-eb75c1615c50dca8e06a0ba6ed46b5662c0ff0aa.zip |
update for summary format changes
svn path=/trunk/; revision=2163
-rw-r--r-- | tests/test9.c | 13 |
1 files changed, 4 insertions, 9 deletions
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 <sys/types.h> #include <unistd.h> #include <errno.h> @@ -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; i<sum1->nb_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; } |