aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-01-20 11:02:13 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-01-20 11:02:13 +0800
commitde8e7223eac6c40b10d2a095210d2120aa97fa55 (patch)
tree1799dfad05eefa22a2f945492048499e897d10db /tests
parent5b0a9fa89ef44fb96f12bffca3a3f1169d4b272d (diff)
downloadgsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar.gz
gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.tar.zst
gsoc2013-evolution-de8e7223eac6c40b10d2a095210d2120aa97fa55.zip
implemented.
2000-01-19 bertrand <bertrand@helixcode.com> * camel/providers/mbox/camel-mbox-folder.c (_get_message_count): implemented. * camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary): (camel_mbox_load_summary): save/load the next uid. * camel/providers/mbox/camel-mbox-parser.c (camel_mbox_parse_file): Compute the next available uid. * camel/providers/mbox/camel-mbox-folder.c (_create): (_check_get_or_maybe_generate_summary_file): Set and use the next_uid field properly. * camel/providers/mbox/camel-mbox-summary.h: added an extra field to store the next available uid. * camel/providers/mbox/camel-mbox-folder.c (_check_get_or_maybe_generate_summary_file): routine called when the folder is opened. Reads or creates the summary file. (_create): initialize the internal summary structure. (_close): save the summary file on closing. (_init_with_store): initialize mbox specific folder members. svn path=/trunk/; revision=1597
Diffstat (limited to 'tests')
-rw-r--r--tests/test9.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/test9.c b/tests/test9.c
index 66a48b3f0f..36cf45ad2a 100644
--- a/tests/test9.c
+++ b/tests/test9.c
@@ -26,6 +26,7 @@ main (int argc, char**argv)
GArray *mbox_summary_info;
CamelMboxSummaryInformation *msg_info;
int i;
+ guint32 next_uid;
camel_debug_level = CAMEL_LOG_LEVEL_FULL_DEBUG;
@@ -35,12 +36,13 @@ main (int argc, char**argv)
ex = camel_exception_new ();
test_file_fd = open (argv[1], O_RDONLY);
message_info_array = camel_mbox_parse_file (test_file_fd,
- "From ",
- 0,
- TRUE,
- NULL,
- 0,
- ex);
+ "From ",
+ 0,
+ &next_uid
+ TRUE,
+ NULL,
+ 0,
+ ex);
close (test_file_fd);
camel_mbox_write_xev (argv[1], message_info_array, 1, ex);