projects
/
infodrom
/
newmail
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a5b78
)
More precaution about arbitrary console output
author
Joey Schulze
<joey@infodrom.org>
Mon, 30 Jul 2007 05:19:08 +0000
(
05:19
+0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 30 Jul 2007 05:19:08 +0000
(
05:19
+0000)
mbox.c
patch
|
blob
|
history
diff --git
a/mbox.c
b/mbox.c
index
ecb0c54
..
5860abb
100644
(file)
--- a/
mbox.c
+++ b/
mbox.c
@@
-217,7
+217,6
@@
int inspect_mbox(char *path, char *prefix, off_t size, int opt_flags)
if (inheader) {
if (strlen(buf) == 0) {
inheader = 0;
- newmail = 1;
if (strlen(from))
stringcopy (realfrom, realname(from), sizeof(realfrom));
@@
-226,8
+225,10
@@
int inspect_mbox(char *path, char *prefix, off_t size, int opt_flags)
else
realfrom[0] = '\0';
- if (realfrom[0] != '\0'
)
+ if (realfrom[0] != '\0'
|| subject[0] != '\0') {
emit (prefix, realfrom, subject, priority, opt_flags);
+ newmail = 1;
+ }
#ifdef FROM_DETECTION
from_[0] = from[0] = to[0] = subject[0] = '\0';