Hi!

Kostik wrote:
> 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.

And and another problem:

3. If filename has more then one encoded parts, like this:
---
Content-Disposition: attachment;

filename="=?UTF-8?B?0JjQvdGE0L7RgNC80LDRhtC40Y8g0L/QviDQutC70LjQtdC90YLRgdC60L7QuSDQsdCw0LfQtSAyLnhs?=
        =?UTF-8?B?cw==?="
Content-Type:  application/vnd.ms-excel;

name="=?UTF-8?B?0JjQvdGE0L7RgNC80LDRhtC40Y8g0L/QviDQutC70LjQtdC90YLRgdC60L7QuSDQsdCw0LfQtSAyLnhs?=
        =?UTF-8?B?cw==?="
Content-Transfer-Encoding: base64
---

And mu_message_aget_attachment_name() return:
---
=?UTF-8?B?0JjQvdGE0L7RgNC80LDRhtC40Y8g0L/QviDQutC70LjQtdC90YLRgdC60L7QuSDQsdCw0LfQtSAyLnhs?=
        =?UTF-8?B?cw==?=
---

Than mu_rfc2047_decode() return:
---
blah-balh-balh.xl
        s
---
i.e. decoded filename has newline(\n) in the middle of name. Is there a way
to automatically cut off newline and all chars between encoded parts?

=kostik

_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Reply via email to