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>
This commit is contained in:
parent
760b663446
commit
b893f09104
@ -152,6 +152,10 @@ static int handle_subcontent_type(char *line)
|
|||||||
/* We do not want to mess with boundary. Note that we do not
|
/* We do not want to mess with boundary. Note that we do not
|
||||||
* handle nested multipart.
|
* handle nested multipart.
|
||||||
*/
|
*/
|
||||||
|
if (strcasestr(line, "boundary=")) {
|
||||||
|
fprintf(stderr, "Not handling nested multipart message.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
slurp_attr(line, "charset=", charset);
|
slurp_attr(line, "charset=", charset);
|
||||||
if (*charset) {
|
if (*charset) {
|
||||||
int i, c;
|
int i, c;
|
||||||
|
Loading…
Reference in New Issue
Block a user