Mark messages as read after history query