diff options
author | NotZed <notzed@zedzone.helixcode.com> | 2000-02-14 13:39:02 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-02-14 13:39:02 +0800 |
commit | aeaa2ed70043e607e1da431d8f33726590f4c83b (patch) | |
tree | 6b017340f52b51b3eb55c0c847089ec5ca505263 /camel/providers/mbox/camel-mbox-parser.c | |
parent | ddcfc699c72ee253307f2939492eb469beba3834 (diff) | |
download | gsoc2013-evolution-aeaa2ed70043e607e1da431d8f33726590f4c83b.tar gsoc2013-evolution-aeaa2ed70043e607e1da431d8f33726590f4c83b.tar.gz gsoc2013-evolution-aeaa2ed70043e607e1da431d8f33726590f4c83b.tar.bz2 gsoc2013-evolution-aeaa2ed70043e607e1da431d8f33726590f4c83b.tar.lz gsoc2013-evolution-aeaa2ed70043e607e1da431d8f33726590f4c83b.tar.xz gsoc2013-evolution-aeaa2ed70043e607e1da431d8f33726590f4c83b.tar.zst gsoc2013-evolution-aeaa2ed70043e607e1da431d8f33726590f4c83b.zip |
New file, implements the search api for mbox folders.
2000-02-13 NotZed <notzed@zedzone.helixcode.com>
* providers/mbox/camel-mbox-search.c: New file, implements the
search api for mbox folders.
* providers/mbox/Makefile.am: Link with ibex.
* camel-folder.c (camel_folder_has_search_capability): Api
additions.
(camel_folder_search_by_expression): Ditto.
2000-02-12 NotZed <notzed@zedzone.helixcode.com>
* providers/mbox/camel-mbox-folder.c (_set_name): Setup index
filename as well.
(_init_with_store): Init index filename. Hmm, none of these
names ever seem to get free'd (FIXME?)
* providers/mbox/camel-mbox-folder.h: Add index file name.
2000-02-12 NotZed <notzed@helixcode.com>
* camel-folder.h: Add folder search functions.
** Created ChangeLog just for camel **
- refer to ../ChangeLog for changes prior to this date.
svn path=/trunk/; revision=1772
Diffstat (limited to 'camel/providers/mbox/camel-mbox-parser.c')
-rw-r--r-- | camel/providers/mbox/camel-mbox-parser.c | 12 |
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, |