본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Change app used to open attachments

  • 6 답장
  • 1 이 문제를 만남
  • 1 보기
  • 최종 답변자: rousea

more options

I frequently exchange emails with attachmented files in a specific format that used the extension .DUCX. I have set the Windows 10 default app for files with this extension to the applicable value (DUCX.exe), and double-clicking on any .DUCX file in File Explorer correctly opens it in the right app.

However, if I try to open a Thunderbird attachment with a .DUCX extension it opens in the app defined for text documents in Tools/Options/Attachments. If I try defining the app for text documents as Use other... >> DUCX.exe then .DUCX attachments open correctly, but real text documents don't.

It appears therefore that Thunderbird puts documents with the extension .DUCX in the same category as general text documents.

I frequently exchange emails with attachmented files in a specific format that used the extension .DUCX. I have set the Windows 10 default app for files with this extension to the applicable value (DUCX.exe), and double-clicking on any .DUCX file in File Explorer correctly opens it in the right app. However, if I try to open a Thunderbird attachment with a .DUCX extension it opens in the app defined for text documents in Tools/Options/Attachments. If I try defining the app for text documents as Use other... >> DUCX.exe then .DUCX attachments open correctly, but real text documents don't. It appears therefore that Thunderbird puts documents with the extension .DUCX in the same category as general text documents.

모든 댓글 (6)

more options
more options

This gave me some ideas but didn't solve the problem.

  1. I created a new profile and checked that the Tools>Options>Attachments table was blank. I then opened an attachment with a .ducx suffix and Thunderbird prompted for the app to open the attachment, to which I entered DUCX.exe and it opened correctly.
  2. I then used File Explorer to find which configuration file had changed in my profile. I discovered that the relevant file is handlers.json. I opened this file in Wordpad and it indeed appeared to reference DUCX extensions and define the relevant application
  3. I copied handlers.json from my test profile to my working profile and opened the profile in Thunderbird. Ducx attachments opened correctly.
  4. I then tried to open a .txt attachment and Thunderbird prompted for the relevant application, with the option of selecting the Windows default app (Wordpad). I accepted this, then tried again to open a DUCX attachment and it opened in Wordpad.

I have attached a screenshot of the Options window that shows the configuration for DUCX, but this line is apparently ignored and Thunderbird instead treats DUCX files as txt files.

more options

From your screenshot this looks like as it should be. Do you see the problem only in the existing profile, or in the new profile as well? I wouldn't bet that copying over the file to the existing profile will ultimately fix the problem there. You should use the GUI Options.

more options

The same applies to both profiles. When I define an app for opening text files that app is also applied to DUCX files, even if I have already defined the required app

more options

open the message source Ctrl+U and look for the duck file that is opening in notepad. does it have the mimetype application/ducx or does it have the mime type application/text.

Thunderbird opens files based on their mime types. The RFC for email uses mimetypes to identify file types, not file extensions. File extensions are used only when the mimetype offers nothing useful.

There is an openattachmentbyextension add-on that might do it for you. https://freeshell.de//~kaosmos/index-en.html#openattach

more options

DUCX files are in XML format, which you may realise comprise plain English text. The mimetype is application/text. I tried installing the OPENATTACHMENTBYEXTENSION add-on but I can't get it to work. It has added itself to Tools >> Add-on Options. If I try to add a new line a dialog window opens prompting for Extension and Command but whatever I enter nothing happes when I click OK or Browse. Can you give any instructions or examples?