projects
/
mymail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bb821f0
)
Fixed the leading from regexp.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 5 Feb 2013 11:09:02 +0000
(12:09 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 5 Feb 2013 11:09:02 +0000
(12:09 +0100)
mymail.c
patch
|
blob
|
history
diff --git
a/mymail.c
b/mymail.c
index
b1734f2
..
f2397a6
100644
(file)
--- a/
mymail.c
+++ b/
mymail.c
@@
-764,7
+764,7
@@
int main(int argc, char **argv) {
struct search_condition search_conditions[MAX_NB_SEARCH_CONDITIONS];
if(regcomp(&leading_from_line_regexp,
struct search_condition search_conditions[MAX_NB_SEARCH_CONDITIONS];
if(regcomp(&leading_from_line_regexp,
- "^From [^ ]*
@[^ ]* \\(Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\|Sun\\) \\(Jan\\|Feb\\|Mar\\|Apr
\\|Jun\\|Jul\\|Aug\\|Sep\\|Oct\\|Nov\\|Dec\\) [ 123][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]\n$",
+ "^From [^ ]*
\\(Mon\\|Tue\\|Wed\\|Thu\\|Fri\\|Sat\\|Sun\\) \\(Jan\\|Feb\\|Mar\\|Apr\\|May
\\|Jun\\|Jul\\|Aug\\|Sep\\|Oct\\|Nov\\|Dec\\) [ 123][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9]\n$",
0)) {
fprintf(stderr,
"mymail: Cannot compile leading \"from\" line regexp. That is strange.\n");
0)) {
fprintf(stderr,
"mymail: Cannot compile leading \"from\" line regexp. That is strange.\n");