Split mime functions out of File -> Mime, fixes #9