aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/mailinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/mailinfo.c b/tools/mailinfo.c
index ef2add7ac..df470bb9c 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;