On 2017-06-14 00:18:44 +0200, Vincent Lefevre wrote:
> 1. If the filename has a known file extension, then deduce the
>    MIME type from it in the usual way (/etc/mime.types system).

On this point, according to the Mutt manual, Mutt currently does:

   When you add an attachment to your mail message, Mutt searches your
   personal mime.types file at $HOME/.mime.types, and then the system
   mime.types file at /usr/local/share/mutt/mime.types or /etc/mime.types

I think that this hard-coded rule is a bad idea because it leaves
no way for the end user who is not an admin to remove some setting.
The problem is that there are many clashes in the file extensions
(a file extension being used for completely different usages),
partly because of the lack of a standard. In practice, various
file extensions that can be found in /etc/mime.types may be wrong
for the user, who may prefer text detection. An example:

application/x-trash                             ~ % bak old sik

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to