mailinfo: barf and exist upon nested multipart.
[gitweb.git] / tools / mailinfo.c
index ef2add7ace9b047638c200f66d73bb52ea79bc05..df470bb9c2296d32e3b1d2b7489c712b01c3b0ed 100644 (file)
@@ -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;