support pagination for messages fetching in the mailbox interface