Consider you have following dataset.
Result against the preceding query:
Note that the dataset doesn't ordered by mail_uid. with that dataset, the IMAP server returns following response:
I believe the server should return all of dataset, but records that after the record which has mail_uid=18 were skipped.