|
From: | Kostik |
Subject: | [bug-mailutils] Re: How get_attachment_name from multiline Content-Disposition? |
Date: | Mon, 05 Apr 2010 21:11:57 +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! 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
[Prev in Thread] | Current Thread | [Next in Thread] |