Skip to content
Browse files

allow addmbox to append to indexes

  • Loading branch information...
1 parent f0defbf commit 93df1e8dae90a4749939c76825655e828d1eee3d @wmorgan committed with twilliam Mar 31, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 mbox-indexer.c
View
3 mbox-indexer.c
@@ -35,7 +35,8 @@ int main(int argc, char* argv[]) {
return -1;
}
- DIE_IF_ERROR(wp_index_create(&idx, argv[1]));
+ if(wp_index_exists(argv[1])) DIE_IF_ERROR(wp_index_load(&idx, argv[1]));
+ else DIE_IF_ERROR(wp_index_create(&idx, argv[1]));
printf("starting...\n");
unsigned long total_bytes = 0;

0 comments on commit 93df1e8

Please sign in to comment.
Something went wrong with that request. Please try again.