Set correct mime type for messages with attachments