MiniMime is a minimal mime type implementation for use with the mail and rest-client gem. It is optimised to minimize memory usage. It keeps a cache of 100 mime type lookups (and 100 misses). WWW: https://github.com/discourse/mini_mime