fork of https://bitbucket.org/pachl/mime with ruby 1.8.7 incompatibility fix