Add client_id and type attributes
Add the mail_type property for dms documents