Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using ubuntu 9.10, and I would like to associate thunderbird to all the files with the extension .eml. The problem is that is seems that ubuntu is attributing the mime type text/plain to these files, based on their content, which meens that if I set thunderbird as the default application for .eml files, all the other text files (.txt for instance) will be opened with thunderbird. Is it possible to add a rule to impose a mime type based on the file extension, regardless of its content?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

You can associate the files mime-type to an application by right clicking and choosing "Open With". You already know that, so what you need to do is have eml files in their own mime type so you can associate Thunderbird with .eml files - right?

Open /etc/mime.types as root and for eml file you should have an entry like this:

message/rfc822                                  eml

If eml appears in another mime type, such as you say text/plain, then remove it from that mime-type.

Once you have done that you can then associate message/rfc822 with Thunderbird.

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.