add mailcap and introduce a default config