I'm following this example for fetching oldest/newest emails in a loop to get the latests ones first, but it keep getting the emails from 64 and down, out a total of 116 emails.
Am I doing something wrong? Because I copied and pasted the code from your examples, I just made it in a loop because the example pulls the latest email alone only. Thanks!
asked Sep 02 '14 at 11:21
The 2nd argument to FetchSingle indicates whether the 1st argument is a UID or a sequence number. Given your code snippet, it is obvious you are passing sequence numbers, but you are incorrectly indicating UIDs (the 2nd are is bUid:YES. It should be bUid:NO)
answered Sep 02 '14 at 13:51