Cerca nel supporto

Attenzione alle mail truffa. Mozilla non chiederà mai di chiamare o mandare messaggi a un numero di telefono o di inviare dati personali. Segnalare qualsiasi attività sospetta utilizzando l'opzione “Segnala abuso”.

Ulteriori informazioni

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

Change app used to open attachments

  • 6 risposte
  • 1 ha questo problema
  • 1 visualizzazione
  • Ultima risposta di 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.

Tutte le risposte (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?