projects
/
infodrom
/
newmail
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c6632e
)
Only detect ^From_ and not '^from_' by accident
master
author
Joey Schulze
<joey@infodrom.org>
Sat, 27 Jun 2009 17:23:35 +0000
(17:23 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Sat, 27 Jun 2009 17:23:35 +0000
(17:23 +0000)
mbox.c
patch
|
blob
|
history
diff --git
a/mbox.c
b/mbox.c
index
cb2e9f3
..
9334a19
100644
(file)
--- a/
mbox.c
+++ b/
mbox.c
@@
-237,7
+237,7
@@
int inspect_mbox(char *path, char *prefix, off_t size, int opt_flags)
#endif
priority = 0;
} else {
#endif
priority = 0;
} else {
- if (strnc
asec
mp(buf, "From ", 5) == 0)
+ if (strncmp(buf, "From ", 5) == 0)
stringcopy (from_, buf+5, sizeof(from_));
else if (strncasecmp(buf, "From: ", 6) == 0)
stringcopy (from, buf+6, sizeof(from));
stringcopy (from_, buf+5, sizeof(from_));
else if (strncasecmp(buf, "From: ", 6) == 0)
stringcopy (from, buf+6, sizeof(from));