Indexing mails when (un)marking as read and fixing tags count