mailcap helpers