add support for an unread inbox and for marking messages read/unread