Add message filtering API
Add API to retrieve number of unread messages