projects
/
mymail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now writes the format version in the first line of db files. Increased version number.
[mymail.git]
/
mymail.c
diff --git
a/mymail.c
b/mymail.c
index
0fb694a
..
a29fedb
100644
(file)
--- a/
mymail.c
+++ b/
mymail.c
@@
-46,7
+46,9
@@
#include <time.h>
#define MYMAIL_DB_MAGIC_TOKEN "mymail_index_file"
#include <time.h>
#define MYMAIL_DB_MAGIC_TOKEN "mymail_index_file"
-#define VERSION "0.9.7"
+#define MYMAIL_VERSION "0.9.8"
+
+#define MYMAIL_DB_FORMAT_VERSION 1
#define MAX_NB_SEARCH_CONDITIONS 32
#define MAX_NB_SEARCH_CONDITIONS 32
@@
-199,7
+201,7
@@
FILE *safe_fopen(const char *path, const char *mode, const char *comment) {
/*********************************************************************/
void print_version(FILE *out) {
/*********************************************************************/
void print_version(FILE *out) {
- fprintf(out, "mymail version %s (%s)\n", VERSION, UNAME);
+ fprintf(out, "mymail version %s (%s)\n",
MYMAIL_
VERSION, UNAME);
}
void print_usage(FILE *out) {
}
void print_usage(FILE *out) {
@@
-1079,7
+1081,7
@@
int main(int argc, char **argv) {
}
}
}
}
- fprintf(db_file, "%s version_%s
raw\n", MYMAIL_DB_MAGIC_TOKEN,
VERSION);
+ fprintf(db_file, "%s version_%s
format_%d raw\n", MYMAIL_DB_MAGIC_TOKEN, MYMAIL_VERSION, MYMAIL_DB_FORMAT_
VERSION);
while(optind < argc) {
recursive_index_mbox(db_file,
while(optind < argc) {
recursive_index_mbox(db_file,