Cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 8 Feb 2013 17:28:46 +0000 (18:28 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 8 Feb 2013 17:28:46 +0000 (18:28 +0100)
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 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);
           }
         }
       }