From: Francois Fleuret Date: Fri, 8 Feb 2013 17:28:46 +0000 (+0100) Subject: Cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf82ff94691f5ade2e6c3dedb7916af1966d1932;p=mymail.git Cosmetics. --- diff --git a/mymail.c b/mymail.c index cc55261..80b70d3 100644 --- a/mymail.c +++ b/mymail.c @@ -48,7 +48,7 @@ #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 @@ -347,7 +347,7 @@ void update_body_hits(char *mail_filename, int position_in_mail, 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; @@ -474,7 +474,7 @@ void search_in_db(const char *db_filename, } 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); } } }