#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
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;
}
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);
}
}
}