Pagination in the message lists, fixes #6542