GET /api/mails gets mails
Add fields to safe_attributes for thread

[ci skip]