add the function .getUnseenMessages(fn) to IMAPClient.prototype