projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
760b663
)
mailinfo: barf and exist upon nested multipart.
author
Junio C Hamano
<junkio@cox.net>
Tue, 6 Sep 2005 23:46:34 +0000
(16:46 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 6 Sep 2005 23:46:34 +0000
(16:46 -0700)
At least we can detect what we do not handle.
Signed-off-by: Junio C Hamano <junkio@cox.net>
tools/mailinfo.c
patch
|
blob
|
history
diff --git
a/tools/mailinfo.c
b/tools/mailinfo.c
index ef2add7ace9b047638c200f66d73bb52ea79bc05..df470bb9c2296d32e3b1d2b7489c712b01c3b0ed 100644
(file)
--- a/
tools/mailinfo.c
+++ b/
tools/mailinfo.c
@@
-152,6
+152,10
@@
static int handle_subcontent_type(char *line)
/* We do not want to mess with boundary. Note that we do not
* handle nested multipart.
*/
+ if (strcasestr(line, "boundary=")) {
+ fprintf(stderr, "Not handling nested multipart message.\n");
+ exit(1);
+ }
slurp_attr(line, "charset=", charset);
if (*charset) {
int i, c;