Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Add OpenDocument Mime Types to Thunderbird

  • 7 个回答
  • 1 人有此问题
  • 5 次查看
  • 最后回复者为 Marc Paré

more options

Can anyonte tell me how to add the OpenDocument (LibreOffice) mime types to Thunderbird?

When I get .odt attachments in my emails, I do not get an option to "Open" the file, or to "Choose which application to use" to open the file.

Is there a way to add these mime types? .odt, .ods, .odp, .odg

BTW ... One would think that, with +200 million LibreOffice users worldwide, these mime types would be part of the default mimes added to Thunderbird along with the others. It would send the notion that Thunderbird supports the open document formats as well as proprietary formats.

Thanks for any help with this.

Thunderbird v.102.7.0 / MageiaLinux8

Can anyonte tell me how to add the OpenDocument (LibreOffice) mime types to Thunderbird? When I get .odt attachments in my emails, I do not get an option to "Open" the file, or to "Choose which application to use" to open the file. Is there a way to add these mime types? .odt, .ods, .odp, .odg BTW ... One would think that, with +200 million LibreOffice users worldwide, these mime types would be part of the default mimes added to Thunderbird along with the others. It would send the notion that Thunderbird supports the open document formats as well as proprietary formats. Thanks for any help with this. Thunderbird v.102.7.0 / MageiaLinux8

所有回复 (7)

more options

Is there anyone who could steer me in the right direction as to how to add a mime type that is not included in the default Thunderbird installation?

Marc

more options
When I get .odt attachments in my emails, I do not get an option to "Open" the file, or to "Choose which application to use" to open the file.

What actually happens when you attempt to open an .odt attachment from a received message?

more options

If I right-click on the attachment it gives me the option to "open" but does not give me the option "Choose which application". It would be nice if this were part of the attachment process where if a new mime-type were attached, the user could assign a software package to open the mime-type.

But, then again, considering that the opendocument users worldwide are used by the hundreds of millions, one would think that Thunderbird would add these as default along with the other default proprietary mime-types.

more options
If I right-click on the attachment it gives me the option to "open" but does not give me the option "Choose which application".

What happens when you click "Open"?

considering that the opendocument users worldwide are used by the hundreds of millions

How do you know it's that many?

more options

The mimetype is encoded at the time the email is "compiled" not when it is received.

Then we have the more special issue. There are no "mimetypes" for .odt, .ods, .odp, .odg

Open document formats are described by the IETF here https://www.iana.org/assignments/media-types/media-types.xhtml

I suggest you search the page (ctrl+F) for openxmlformats just to get an idea of how many formats are involved.

Now open the message source and look for the attachment.

This is an example;

Content-Type: application/octet-stream; name="J.docx"
Content-Disposition: attachment; filename="J.docx"
Content-Transfer-Encoding: base64

While this is clearly a docx file to you and me it is described in the Content-Type as application/octet-stream

So this file will not be recognized by Thunderbird as anything but a binary data-stream because it is explicitly encoded as such. So it will be tossed to the operating system in the hope it has some idea what to do with it. If not, save will be the option offered. Word files are actually encoded the same way as LibreOffice files as they are both open document formatted files. In the case of a DOCX document file as vnd.openxmlformats-officedocument.wordprocessingml.document

This is another real world example Content-Type: text/rtf; charset=UTF-8; name="Off.rtf" Content-Disposition: attachment; filename="Off.rtf"

This will be passed to the RTF file handler set up in Thunderbird without reference to the operating system because the file is correctly encoded by the sender.

What is perhaps the saddest part of the whole thing about email attachments is the volume of incorrectly encoded media types. However over the years I have observed in developer forums that Windows developers really just do not appear to comprehend what the media type is for. It is used extensively in the internet, email and on Linux, Unix and Mac machines file handlers. But the majority of windows developers leave comments on forums like "I use Application/Octet stream because it works, I do not know what it means."

more options

christ1 said

If I right-click on the attachment it gives me the option to "open" but does not give me the option "Choose which application".

What happens when you click "Open"?

Nothing happens, no other option is offered. The menu disappears.

considering that the opendocument users worldwide are used by the hundreds of millions

How do you know it's that many?

I am part of the LibreOffice marketing team since the beginning and that is the number of active users estimated by The Document Foundation. It is also publicly stated on Wikipedia which is kept updated by the TDF.

more options

Matt said

Hi Matt,

If I understand you correctly, then the open document format(s) have not created appropriate mime-types and this is the problem?

Marc