add mime-type support for attachments/resources