CAPS Universe documentation  1.0.4
All you need to know to be successful
libcapsmime

libcapsmime: MIME type detection

The libcapsmime provides an API for MIME type detection. It can use libmagic for this job or - if libmagic isn't available - can check for a couple of file types by itself.

This library requires libcapsbase and libmagic (on demand).