[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] Re: How get_attachment_name from multiline Content-Dispo
From: |
Kostik |
Subject: |
[bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition? |
Date: |
Mon, 05 Apr 2010 17:03:59 +0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 |
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] How get_attachment_name from multiline Content-Disposition?, Kostik, 2010/04/02
- Re: [bug-mailutils] How get_attachment_name from multiline Content-Disposition?, Sergey Poznyakoff, 2010/04/02
- [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?,
Kostik <=
- [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Kostik, 2010/04/05
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Sergey Poznyakoff, 2010/04/06
- Message not available
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Sergey Poznyakoff, 2010/04/06
- [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Kostik, 2010/04/07
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Sergey Poznyakoff, 2010/04/07
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Kostik, 2010/04/07
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Sergey Poznyakoff, 2010/04/07
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Kostik, 2010/04/07
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Sergey Poznyakoff, 2010/04/07
- Re: [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition?, Sergey Poznyakoff, 2010/04/08