Note that Thunderbird uses RFC2231 rules for encoding the filename param
(including "Parameter Value Continuations" and its "Parameter Value
Character Set and Language Information" rules) in the
Content-Disposition header.
However, for compatibility with some clients like Outlook, Outlook
Express, Pine, email_to_text_message services (like
num...@vtext.com)
and other clients that don't support RFC2231, Thunderbird uses RFC2047
rules for encoding the name param in the Content-Type header so the
filename for the attachment comes out right (IE doesn't support RFC2231
in HTTP header either, even though other browsers do). So, if the
filename is just short, simple ascii, it'll be just filename="ascii".
But, if it's long and or contains non-ascii characters, it might be
encoded as base64 or quoted-printable for example using the methods in
RFC2047.
In the config editor, I think there's an option to control this to
always using RFC2231, but not sure if it's still there.
Opera does the same as Thunderbird pretty much.
Sylpheed has an option (off by default) to use RFC2231 instead of 822/2047.
On 5/31/2012 11:47 PM, fix wrote:
> Content-Type: application/zip;
> name="=?UTF-8?B?77+9?="
> Content-Transfer-Encoding: base64
> Content-Disposition: attachment;
> filename*=UTF-8''%EF%BF%BD
If the attachment's filename is supposed to be "Привет !.zip" (guessing
by looking at the links you posted) for example, then, it should be:
Content-Type: application/zip; name="=?UTF-8?B?0J/RgNC40LLQtdGCICEuemlw?="
Content-Disposition: attachment;
filename*=UTF-8''%D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82%20!.zip
that ends up in the outgoing message.
%EF%BF%BD (and the base64 version of that in the content-type name
param) looks like replacement characters or something as if Thunderbird
had a problem understanding/converting the Russian to UTF-8 when
reply/forwarding.
Don't know if that helps any, but...
--
Michael