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!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Opening attachments with unrecognised extensions

  • 1 відповідь
  • 1 має цю проблему
  • 11 переглядів
  • Остання відповідь від Matt

more options

We manufacture a system that uses specific configuration files with the extension .DUCX. We have developed our own app to use these files.

However, if a file XXX.DUCX is attached to an email and I double-click on it I am not asked which app to send it to. Instead it opens as a text file XXX.DUCX.TXT.

Thunderbird Options>>Files & Attachments allows the app for specific file types to be defined but doesn't offer the facility to add additional file types

We manufacture a system that uses specific configuration files with the extension .DUCX. We have developed our own app to use these files. However, if a file XXX.DUCX is attached to an email and I double-click on it I am not asked which app to send it to. Instead it opens as a text file XXX.DUCX.TXT. Thunderbird ''Options>>Files & Attachments'' allows the app for specific file types to be defined but doesn't offer the facility to add additional file types

Усі відповіді (1)

more options

Actually it allows for specific media types to be defined. Media types for the windows educated are not file extensions and there have been some spectacular snafus created by developers that are unaware of this.

You will need to correctly encode your attachment as something other than plain text (which it is apparently encoded as now) if you want it to be recognized as something other than plain text be email clients and web browsers.

The link is for "registered media types" https://www.iana.org/assignments/media-types/media-types.xhtml

There was an addon for V68 that opened attachment by extension but it has not been updated for V78 and later. Perhaps you might get some mileage there as you develop software. https://github.com/HiraokaHyperTools/OpenAttachmentByExtension/tree/master/js