aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox/camel-mbox-summary.c
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-19 12:33:14 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-19 12:33:14 +0800
commitd44875ac5f2dfc7753cc33281c5fc8a866edd0b7 (patch)
tree8387b2fee5cb9f041f4fedeb2b76ab800d8929e9 /camel/providers/mbox/camel-mbox-summary.c
parentbd4e64bd780fc0e39832f5c5abf1a15522fa6076 (diff)
downloadgsoc2013-evolution-d44875ac5f2dfc7753cc33281c5fc8a866edd0b7.tar
gsoc2013-evolution-d44875ac5f2dfc7753cc33281c5fc8a866edd0b7.tar.gz
gsoc2013-evolution-d44875ac5f2dfc7753cc33281c5fc8a866edd0b7.tar.bz2
gsoc2013-evolution-d44875ac5f2dfc7753cc33281c5fc8a866edd0b7.tar.lz
gsoc2013-evolution-d44875ac5f2dfc7753cc33281c5fc8a866edd0b7.tar.xz
gsoc2013-evolution-d44875ac5f2dfc7753cc33281c5fc8a866edd0b7.tar.zst
gsoc2013-evolution-d44875ac5f2dfc7753cc33281c5fc8a866edd0b7.zip
tests for summary and parsing process of mbox files.
2000-01-18 bertrand <bertrand@helixcode.com> * tests/test9.c: tests for summary and parsing process of mbox files. * camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file): do not use case insensitive comp to detect message separators. Kill some nasty bugs in netscape file parsing, * camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary): don't use g_array_append but write directly inside the array data instead. Better performance and bug fix. * camel/providers/mbox/camel-mbox-summary.c (camel_mbox_load_summary): fix the name and bugs. * camel/camel-folder-summary.h: update the class method definition to match the public defs. svn path=/trunk/; revision=1592
Diffstat (limited to 'camel/providers/mbox/camel-mbox-summary.c')
-rw-r--r--camel/providers/mbox/camel-mbox-summary.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-summary.c b/camel/providers/mbox/camel-mbox-summary.c
index a91cd1f6ad..6915cd4a9b 100644
--- a/camel/providers/mbox/camel-mbox-summary.c
+++ b/camel/providers/mbox/camel-mbox-summary.c
@@ -63,12 +63,13 @@ camel_mbox_save_summary (CamelMboxSummary *summary, const gchar *filename, Camel
}
/* compute and write the mbox file md5 signature */
- md5_get_digest_from_file (filename, summary->md5_digest);
+ //md5_get_digest_from_file (filename, summary->md5_digest);
/* write the number of messages + the md5 signatures */
write (fd, summary, sizeof (guint) + sizeof (guchar) * 16);
+ printf ("%d %d\n", summary->nb_message, summary->message_info->len);
for (cur_msg=0; cur_msg < summary->nb_message; cur_msg++) {
msg_info = (CamelMboxSummaryInformation *)(summary->message_info->data) + cur_msg;
@@ -79,6 +80,7 @@ camel_mbox_save_summary (CamelMboxSummary *summary, const gchar *filename, Camel
sizeof (guint32) + sizeof (guint) +
sizeof (guint32) + sizeof (guchar));
+ //printf ("IN iewr subject = %s\n", msg_info->subject);
/* write subject */
field_lgth = msg_info->subject ? strlen (msg_info->subject) : 0;
write (fd, &field_lgth, sizeof (guint));
@@ -116,7 +118,7 @@ camel_mbox_save_summary (CamelMboxSummary *summary, const gchar *filename, Camel
CamelMboxSummary *
-mbox_load_summary (const gchar *filename, CamelException *ex)
+camel_mbox_load_summary (const gchar *filename, CamelException *ex)
{
CamelMboxSummaryInformation *msg_info;
guint cur_msg;
@@ -200,3 +202,13 @@ mbox_load_summary (const gchar *filename, CamelException *ex)
}
+
+
+
+
+
+
+
+
+
+