It is not possible to receive only messages of a certain day in a specific folder.
The IMAP method is to cache the message / envelope and receive only the latest / new messages. Take a look at TIdIMAP4.StatusMailbox and TIdIMAP4.RetrieveFlags to check which messages are new to the client and download only those messages / enelopes.
Possible flags
TIdMessageFlags = ( mfAnswered, //Message has been answered. mfFlagged, //Message is "flagged" for urgent/special attention. mfDeleted, //Message is "deleted" for removal by later EXPUNGE. mfDraft, //Message has not completed composition (marked as a draft). mfSeen, //Message has been read. mfRecent ); //Message is "recently" arrived in this mailbox.
source share