smarter selection of a message after deleting a message