projects
/
mymail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0b05314
)
Simplified a bit.
author
Francois Fleuret
<francois@fleuret.org>
Sun, 24 Feb 2013 14:54:54 +0000
(15:54 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Sun, 24 Feb 2013 14:54:54 +0000
(15:54 +0100)
mymail.c
patch
|
blob
|
history
diff --git
a/mymail.c
b/mymail.c
index
df64b5a
..
219f6a3
100644
(file)
--- a/
mymail.c
+++ b/
mymail.c
@@
-57,9
+57,7
@@
/* Global variables! */
/* Global variables! */
-int paranoid;
int quiet;
int quiet;
-int ignore_dot_files;
regex_t leading_from_line_regexp;
regex_t leading_from_line_regexp;
@@
-238,7
+236,7
@@
int ignore_entry(const char *name) {
return
strcmp(name, ".") == 0 ||
strcmp(name, "..") == 0 ||
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) {
}
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);
"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;
}
in_header = 1;
new_header = 1;
@@
-848,10
+845,8
@@
int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
exit(EXIT_FAILURE);
}
- paranoid = 0;
quiet = 0;
default_search_field = 0;
quiet = 0;
default_search_field = 0;
- ignore_dot_files = 1;
strncpy(output_filename, "", PATH_MAX);
setlocale(LC_ALL, "");
strncpy(output_filename, "", PATH_MAX);
setlocale(LC_ALL, "");