http://tcllib.sourceforge.net/doc/fumagic.html
[replace this comment with more details on this tcllib module]
The module and its packages are a Tcllib'ification of CMcC's mime type recognition in pure tcl.