aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox/camel-mbox-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/mbox/camel-mbox-parser.c')
-rw-r--r--camel/providers/mbox/camel-mbox-parser.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-parser.c b/camel/providers/mbox/camel-mbox-parser.c
index 905214811e..43a7fa3133 100644
--- a/camel/providers/mbox/camel-mbox-parser.c
+++ b/camel/providers/mbox/camel-mbox-parser.c
@@ -846,17 +846,25 @@ main (int argc, char **argv)
{
int test_file_fd;
int i;
+ int file_size;
+ int next_uid;
GArray *message_positions;
CamelMboxParserMessageInfo *message_info;
gchar tmp_buffer[50];
tmp_buffer[49] = '\0';
+ if (argc<2) {
+ printf("usage: %s mbox\n", argv[0]);
+ return 1;
+ }
+
test_file_fd = open (argv[1], O_RDONLY);
message_positions = camel_mbox_parse_file (test_file_fd,
"From ",
-
- 0,
+ 0,
+ &file_size,
+ &next_uid,
TRUE,
status,
0.05,