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

搜索 | 用户支持

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

详细了解

Attachment type doesn't open anymore (Mac/OSX)

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cyberpi

more options

Hello,

Some days ago I set the file type ".java" to always open with Emacs in Thunderbird 91.5.1. Since then, when I double click on a java attachment or try to use the "Open" context menu, absolutely nothing happens. For the other file types it works normally. I can save the attachment and open it from the finder, but that's rather annoying...

My handlers.json looks normal :

{"defaultHandlersVersion":{},"mimeTypes":{"application/pdf":{"action":3,"extensions":["pdf"]},"image/jpeg":{"action":4,"ask":true,"extensions":["jpg","jpeg","jpe","jfif","pjpeg","pjp"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"action":4,"ask":true,"extensions":["docx"]},"image/png":{"action":4,"ask":true,"extensions":["png"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"action":4,"ask":true,"extensions":["xlsx"]},"text/plain":{"action":2,"handlers":[{"name":"Emacs","path":"/Applications/Emacs.app"}],"extensions":["txt","text","asc"],"ask":true},"text/markdown":{"action":2,"ask":true,"handlers":[{"name":"Firefox","path":"/Applications/Firefox.app"},{"name":"Emacs","path":"/Applications/Emacs.app"}]}},"schemes":{}}

So I suspect the "open action" is hidden elsewhere - but where ?

Thanks !

Hello, Some days ago I set the file type ".java" to always open with Emacs in Thunderbird 91.5.1. Since then, when I double click on a java attachment or try to use the "Open" context menu, absolutely nothing happens. For the other file types it works normally. I can save the attachment and open it from the finder, but that's rather annoying... My handlers.json looks normal : {"defaultHandlersVersion":{},"mimeTypes":{"application/pdf":{"action":3,"extensions":["pdf"]},"image/jpeg":{"action":4,"ask":true,"extensions":["jpg","jpeg","jpe","jfif","pjpeg","pjp"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"action":4,"ask":true,"extensions":["docx"]},"image/png":{"action":4,"ask":true,"extensions":["png"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"action":4,"ask":true,"extensions":["xlsx"]},"text/plain":{"action":2,"handlers":[{"name":"Emacs","path":"/Applications/Emacs.app"}],"extensions":["txt","text","asc"],"ask":true},"text/markdown":{"action":2,"ask":true,"handlers":[{"name":"Firefox","path":"/Applications/Firefox.app"},{"name":"Emacs","path":"/Applications/Emacs.app"}]}},"schemes":{}} So I suspect the "open action" is hidden elsewhere - but where ? Thanks !

所有回复 (2)

more options

I have no idea what my handlers looks like, that is because there is no user editable content in it. So why look at it? There is a user interface to determine what is what in media types.

I am however pretty sure your emacs entry is missing a media type it related to, just comparing it to the Firefox entry before it.

The media types registered with IANA containing Java in their name are. javascript application/javascript [RFC4329] javascript (OBSOLETED in favor of application/javascript) text/javascript [RFC4329] and vnd.jcp.javame.midlet-rms application/vnd.jcp.javame.midlet-rms [Mikhail_Gorshenev]

So I guess to work out what the issue is, perhaps look in the message source (ctrl+U) and identify which of those media types are used to describe the attachment you are trying to open in Emacs.

My personal guess is this is another example of shoddy encoding by a web script/router/IOT Device. Either application/text or application/octet-stream are fairly common incorrect encodings of content. But without knowing what is being used, suggesting a workaround is really not possible.

more options

Hello.

Thank you for your answer.

What I see in the message source is:

Content-Type: text/plain; charset="UTF-8"; name="Test.java" Content-Disposition: attachment; filename="Test.java" Content-Transfer-Encoding: base64

And in my Thunderbird preferences I have the following settings (that come from handlers.json if I understood well).

Any idea ?