Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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:value="application/xhtml+xml"
               NC:editable="true"
               NC:fileExtensions="xht"
               NC:description="Firefox HTML Document">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/xhtml+xml"/>
</RDF:Description>

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

NC:fileExtensions="html"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.