#include <regex.h>
#define MYMAIL_DB_MAGIC_TOKEN "mymail_index_file"
-#define VERSION "0.1"
+#define VERSION "0.9"
#define MAX_NB_SEARCH_PATTERNS 10
}
}
- if(!db_root_path) {
- fprintf(stderr,
- "mymail: db root path is not set\n");
- exit(EXIT_FAILURE);
- }
-
-
if(error) {
print_usage(stderr);
exit(EXIT_FAILURE);
}
}
- fprintf(db_file, "%s version_%s raw version\n", MYMAIL_DB_MAGIC_TOKEN, VERSION);
+ fprintf(db_file, "%s version_%s raw\n", MYMAIL_DB_MAGIC_TOKEN, VERSION);
while(optind < argc) {
recursive_index_mbox(db_file,
else {
+ if(!db_root_path) {
+ fprintf(stderr,
+ "mymail: db root path is not set\n");
+ exit(EXIT_FAILURE);
+ }
+
if(nb_search_patterns > 0) {
struct search_request search_requests[MAX_NB_SEARCH_PATTERNS];
char *search_regexp_string;