From 5e4695e7178c12d47fb5f758e203256cabbc3823 Mon Sep 17 00:00:00 2001 From: bertrand Date: Tue, 18 Jan 2000 19:29:48 +0000 Subject: summary file read/write routines. 2000-01-18 bertrand * camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary): (mbox_load_summary): summary file read/write routines. * camel/providers/mbox/camel-mbox-utils.c (parsed_information_to_mbox_summary): routine to construct the summary after the mbox file has been parsed and the x-evolution fields inserted. * camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): dont use the x_evolution field but rather the uid to determine the presence of "X-Evolution" in the mail. * camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file): parse the status and uid values if the x-evolution has been found. * camel/providers/mbox/camel-mbox-utils.c (camel_mbox_xev_parse_header_content): return the parsed status field correctly. * camel/providers/mbox/camel-mbox-utils.h: fixed bad prototype. * camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file): parse and store the "To:" header. * camel/providers/mbox/camel-mbox-parser.h: added a "to" field * camel/camel-folder-summary.c: create the arrays here. * camel/camel-folder-summary.h: the list of summary information is no longer a GList but rather a GArray. Parsing/summary/sync-check is here. Needs testing and integration with the rest of the folder code. svn path=/trunk/; revision=1589 --- camel/providers/mbox/camel-mbox-utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'camel/providers/mbox/camel-mbox-utils.h') diff --git a/camel/providers/mbox/camel-mbox-utils.h b/camel/providers/mbox/camel-mbox-utils.h index cacabd2f19..25e611392e 100644 --- a/camel/providers/mbox/camel-mbox-utils.h +++ b/camel/providers/mbox/camel-mbox-utils.h @@ -39,7 +39,7 @@ extern "C" { void camel_mbox_xev_parse_header_content (gchar header_content[6], guint32 *uid, - guchar status); + guchar *status); void camel_mbox_xev_write_header_content (gchar header_content[6], @@ -52,6 +52,9 @@ camel_mbox_write_xev (gchar *mbox_file_name, glong last_uid, CamelException *ex); +GArray * +parsed_information_to_mbox_summary (GArray *parsed_information); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.3