#3959: Feature Request: Use xdg-mime to determine mime-type
-------------------------+----------------------
 Reporter:  boruch       |      Owner:  mutt-dev
     Type:  enhancement  |     Status:  new
 Priority:  minor        |  Milestone:
Component:  MIME         |    Version:
 Keywords:               |
-------------------------+----------------------
 For systems that have package xdg-utils available/installed, program xdg-
 mime can return a mime-type for a file without needing to identify it by
 filename extension. For example:

  $ xdg-mime query filetype ~/patch_patch-patch

 returns:  text/x-patch

 OTOH, mutt (v1.7) recognizes the file as plain text.

 Also, by default, mutt recognizes files with extension .patch as mime-type
 text/x-diff, which is close but not exact.

 Alternatively, package 'file' includes the command-line program file,
 which also has a mime-type option:

   $ file --mime-type ~/patch_patch-patch

 returns:  text/x-diff

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3959>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to