Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm encountering a problem regarding handling of attachments with Thunderbird (9.0.1, Win 7). I've set Thunderbird to open HTML files with Firefox. But currently, Thunderbird adds a ".xht" extension to the attachment file when saving temporarily (so, the filename "foo.html" now is "foo.html.xht") before passing it to Firefox. Thus, Firefox tries to parse the HTML file as XML and fails, since the attachments often aren't valid X(HT)ML but old, ugly HTML.

If i save the attachment manually, Thunderbird doesn't touch the file extension, thus Firefox has no problem to display the "old" HTML. But when saving manually, i have to open the win explorer, navigate to the download folder and double-click manually.

So, how to tell Thunderbird not to change the file name (especially the extension) when saving the file temporarily?

share|improve this question
up vote 0 down vote accepted

Ok, stupid me - found it myself, with the help of the mozillaZine Knowledge Base. The problem was a wrong Content-Type set by the sender - it was "application/xhtml+xml" instead of "text/html". So, the easiest solution would be to tell the sender to add a content type that fits the content.

For the mail recipient, a quick and dirty solution would be to modify the "mimeTypes.rtf" file that's part of the user profile. It should have an entry looking like this:

<RDF:Description RDF:about="urn:mimetype:application/xhtml+xml"
               NC:description="Firefox HTML Document">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/xhtml+xml"/>

Changing he value of the NC:fileExtensions attribute to html will make Thunderbird save even application/xhtml+xml attachments with 'html' file extension:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .