Rewrite is_from efficiently, and put it in lib-mime where it belongs.