Use a PhfMap for the mimes

Work in progress