欢迎来到麦麦的不老阁

记录一些关于自己在linux、网络应用、个人心情故事的文字...

关于我

我喜欢搬个小板凳坐在马路边看MM,喜欢把双手插裤兜...更多机密资料... »

Member Login

Lost your password?

麦麦的不老阁

关注互联网,爱生活爱拉芳!不扯谈客观,哥的博客哥做主,用低俗的文字来表述主观看法~

解决Thunderbird附件名被更改的问题

觉得Evolotion、Kmail作mail client软件,都不适合自己,还是选择了Thunderbird(对Mozilla出品的东东一直有好感,嚯嚯~).Thunderbird,其简洁明了的界面,外加对多语言编码的自动识别,觉得十分不错。

不过在使用Thunderbird 发送附件的时候,附件居然会被改名,变成类似于“ATT01234.dat”文件,今天早上发送了一封附件为*.pdf文件的邮件,结果老板来问我是什么文件,结果只好用OWA在线重新发送一封。这个问题的存在已经很久了,不过并不是所有的附件都会被改名,所以一直拖到现在都没有去解决。看来,是该解决问题的时候了,google一下,发现存在此问题的人还真多,答案总算找到了:

附件文件名是由邮件的Message Header来传输的,Thunderbird 1.5以及以后的版本相比其他邮件系统,比如,Eudora、Hotmail、Netscape Webmail、Outlook以及Outlook Express所支持的Message Header协议不同。前者支持RFC2231(新版本),其他后者支持RFC2047(旧版本)。因此造成了以上的问题。解决办法如下:

找到存放邮件的硬盘目录里的“prefs.js”,增加一行user_pref(”mail.strictly_mime.parm_folding”, 0);或者按照以下步骤操作:
英文版:Tools -> Options -> Advanced -> General -> Config Editor,找到mail.strictly_mime.parm_folding,将其从2改为0即可。
中文版:编辑 -> 首选择 -> 高级 -> 常规 -> 配置编辑器 -> 找到mail.strictly_mime.parm_folding,将其从2改为0即可。
2007-12-06:这个问题在1.5X版本中出现,后续的版本应该不存在这个问题了!我现在用2.0版本,mail.strictly_mime.parm_folding 默认值等于3~
以上资料参考资料:http://kb.mozillazine.org/Attachments_renamed
原文如下:

Attachments renamed
From MozillaZine Knowledge Base

This article was written for Thunderbird but also applies to Mozilla Suite / SeaMonkey (though some menu sequences may differ).

Sometimes attachments sent using Thunderbird 1.5 or later are renamed as .DAT or .BIN files when viewed using Eudora, Hotmail, Netscape webmail, Outlook or Outlook Express. They are displayed correctly in Thunderbird.

This appears to occur only when the filename exceeds 64 bytes. This includes filenames that are less than 64 characters but are longer than 64 bytes due to Unicode or multibyte characters . For example, View ->Message Source shows the headers for a Microsoft Word attachment called “Nový objekt – Dokument aplikace Microsoft Word.doc” (in Czech) sent using two versions of Thunderbird:

Thunderbird 1.0.7 (no problem)

Content-Type: application/msword;
name=”=?ISO-8859-2?Q?Nov=FD_objekt_-_Dokument_aplikace_Microsoft_Wo?==?ISO-8859-2?Q?rd=2Edoc?=”
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename=”=?ISO-8859-2?Q?Nov=FD_objekt_-_Dokument_aplikace_Microsoft_Wo?==?ISO-8859-2?Q?rd=2Edoc?=”

Thunderbird 1.5: (has the problem)

Content-Type: application/msword;
name*0*=ISO-8859-2Nov%FD%20objekt%20-%20Dokument%20aplikace%20Microsoft
name*1*=%20Word.doc
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename*0*=ISO-8859-2Nov%FD%20objekt%20-%20Dokument%20aplikace%20Micros
filename*1*=oft%20Word.doc

The problem is caused by “name” and “filename” being replaced by multiple parameters. This is due to Thunderbird switching from RFC2047 to RFC2231 (a newer standard) for attachment filename handling. Outlook supports RFC2047 (the older standard).

This problem can be worked around by setting the mail.strictly_mime_paramfolding preference to either 0 or 1 to use RFC2047 . It defaults to 2 (RFC2231)

You could either add the following to prefs.js in your profile folder

user_pref(”mail.strictly_mime.parm_folding”, 0);

or use Tools -> Options -> Advanced -> General -> Config Editor , type mail.strictly_mime.parm_folding in the Filter:, and then double click on the 2 and change it to 0.

订阅博客地址:http://www.uncle.ws/subscribe/

您可能感兴趣的相关日志

本文评论 1 comment

  1. liheng Leave a comment:

    您好,我用的是 evolution,也碰到了与相似的问题,附件名被更改了,不知道如何解决,希望获得你的帮助,谢谢!我的邮件:chinajacksonlee#yahoo.com.cn (请将# 换成@)

Leave a comment

玩转Linux

把Linux当玩具

Wordpress

Wordpress 程序应用

游荡互联网

在网上做点啥?

业界资讯

互联网资讯

随笔小记

随笔小记

软件快递

收集软件资讯