add tests for mail header codec
add mime type library to guess content types