Browse Source

mailinfo: barf and exist upon nested multipart.

At least we can detect what we do not handle.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 20 years ago
parent
commit
b893f09104
  1. 4
      tools/mailinfo.c

4
tools/mailinfo.c

@ -152,6 +152,10 @@ static int handle_subcontent_type(char *line) @@ -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;

Loading…
Cancel
Save