Hi!
> This calls for a good rewrite. Please, apply the attached patch. It also
> addresses your previous report (regarding double-quote character).
...
> Let me know if it works for you.
I got a attachment.c from the git and compiled a mailutils-2.1 with it.
1. "double-quoted filename" works fine. Thanks.
2. but multiline Content-Disposition does not work.
Example:
------=_Part_22624_19476472.1270132779794
Content-Type: application/msword;
name="=?UTF-8?B?0KHQstC10LTQtdC90LjRjyDQv9C+INC/0LDQstCw0LTQutGDINCzLiDQmtC40YHQtQ==?=
=?UTF-8?B?0LvQtdCy0YHQuiAwMi4wNC4xMNCzLmRvYw==?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename*0*=UTF-8''%D0%A1%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D1%8F%20%D0;
filename*1*=%BF%D0%BE%20%D0%BF%D0%B0%D0%B2%D0%B0%D0%B4%D0%BA%D1%83%20%D0;
filename*2*=%B3%2E%20%D0%9A%D0%B8%D1%81%D0%B5%D0%BB%D0%B5%D0%B2%D1%81%D0;
filename*3*=%BA%20%30%32%2E%30%34%2E%31%30%D0%B3%2E%64%6F%63
------=_Part_22624_19476472.1270132779794
In my case "*end" == "*" in:
---
/* Parameter value continuation (RFC 2231, Section 3).
See if the index is OK */
char *end;
unsigned long n = strtoul (p + param_len + 1, &end, 10);
printf ("end=%c\n", *end); /*!!!!!!!!!!!!!!!!!!!*/
if (*end != '=' || n != cind)
{
res = MU_ERR_PARSE;
break;
}
---
And mu_message_aget_attachment_name return fname == NULL.
=kostik
_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils