From b893f09104ee5f1d8710dfe17cdf1cbac995f17a Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 6 Sep 2005 16:46:34 -0700 Subject: mailinfo: barf and exist upon nested multipart. At least we can detect what we do not handle. Signed-off-by: Junio C Hamano diff --git a/tools/mailinfo.c b/tools/mailinfo.c index ef2add7..df470bb 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; -- cgit v0.10.2-6-g49f6