projects
/
mymail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated the version number.
[mymail.git]
/
mymail.c
diff --git
a/mymail.c
b/mymail.c
index
cc55261
..
80b70d3
100644
(file)
--- a/
mymail.c
+++ b/
mymail.c
@@
-48,7
+48,7
@@
#define MYMAIL_DB_MAGIC_TOKEN "mymail_index_file"
#define VERSION "0.9.2"
#define MYMAIL_DB_MAGIC_TOKEN "mymail_index_file"
#define VERSION "0.9.2"
-#define MAX_NB_SEARCH_CONDITIONS
10
+#define MAX_NB_SEARCH_CONDITIONS
32
#define BUFFER_SIZE 65536
#define TOKEN_BUFFER_SIZE 1024
#define BUFFER_SIZE 65536
#define TOKEN_BUFFER_SIZE 1024
@@
-347,7
+347,7
@@
void update_body_hits(char *mail_filename, int position_in_mail,
fclose(mail_file);
}
fclose(mail_file);
}
-void
write
_mail(const char *mail_filename, unsigned long int position_in_mail,
+void
extract
_mail(const char *mail_filename, unsigned long int position_in_mail,
FILE *output_file) {
char raw_mbox_line[BUFFER_SIZE];
FILE *mail_file;
FILE *output_file) {
char raw_mbox_line[BUFFER_SIZE];
FILE *mail_file;
@@
-474,7
+474,7
@@
void search_in_db(const char *db_filename,
}
if(nb_body_conditions == nb_fulfilled_body_conditions) {
}
if(nb_body_conditions == nb_fulfilled_body_conditions) {
-
write
_mail(current_mail_filename, current_position_in_mail, output_file);
+
extract
_mail(current_mail_filename, current_position_in_mail, output_file);
}
}
}
}
}
}