From: Francois Fleuret Date: Sun, 24 Feb 2013 14:54:54 +0000 (+0100) Subject: Simplified a bit. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=753b7cb9dd8e1929b9f52400a28a9aab0062cad3;p=mymail.git Simplified a bit. --- diff --git a/mymail.c b/mymail.c index df64b5a..219f6a3 100644 --- a/mymail.c +++ b/mymail.c @@ -57,9 +57,7 @@ /* Global variables! */ -int paranoid; int quiet; -int ignore_dot_files; regex_t leading_from_line_regexp; @@ -238,7 +236,7 @@ int ignore_entry(const char *name) { return strcmp(name, ".") == 0 || strcmp(name, "..") == 0 || - (ignore_dot_files && name[0] == '.' && name[1] != '/'); + (name[0] == '.' && name[1] != '/'); } int is_a_leading_from_line(char *mbox_line) { @@ -575,7 +573,6 @@ void index_mbox(const char *mbox_filename, "Got a ^\"From \" in the header in %s:%lu.\n", mbox_filename, position_in_file); fprintf(stderr, "%s", raw_mbox_line); - if(paranoid) { exit(EXIT_FAILURE); } } in_header = 1; new_header = 1; @@ -848,10 +845,8 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } - paranoid = 0; quiet = 0; default_search_field = 0; - ignore_dot_files = 1; strncpy(output_filename, "", PATH_MAX); setlocale(LC_ALL, "");