|
Hi,
I am parsing a message with a MIME header:
Content-Type: multipart/related; type="text/html"; boundary=Apple-Mail-7-77619769
I am calling mime_get_num_parts(), which calls _mime_parse_mpart_message() which further calls _mime_get_param for the ‘boundary’ parameter. The presence of the quoted ‘type’ parameter value causes was_quoted to be set to 1, but the value is never reset, so the boundary extracted is 1 character less.
I suggest (mime.c):
if (strncasecmp (p, param, strlen (param))) { /* no match jump to next */ p = strchr (e, ';'); was_quoted=0; continue; } else return was_quoted ? v + 1 : v; /* return unquoted value */
Thanks, Shashank |
_______________________________________________ Bug-mailutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-mailutils
