Picks up the specified number of unread messages.
An array of pairs containing the message ID and the message itself.
The maximum number of messages to pick up.