From b893f09104ee5f1d8710dfe17cdf1cbac995f17a Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 6 Sep 2005 16:46:34 -0700 Subject: [PATCH] mailinfo: barf and exist upon nested multipart. At least we can detect what we do not handle. Signed-off-by: Junio C Hamano --- tools/mailinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/mailinfo.c b/tools/mailinfo.c index ef2add7ace..df470bb9c2 100644 --- 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; -- 2.11.4.GIT