Method GetEmailsAwaitingContentAsync
- Namespace
- MailFathom.Application.Synchronization
- Assembly
- MailFathom.Application.dll
GetEmailsAwaitingContentAsync(MailAccountId, MailFolderResolutionId, ImapUidValidity, int, CancellationToken)
Gets the occurrences of one folder that are recorded without their content and are waiting for room.
Task<IReadOnlyList<RemoteEmailMetadata>> GetEmailsAwaitingContentAsync(MailAccountId accountId, MailFolderResolutionId folderResolutionId, ImapUidValidity uidValidity, int maxEmailCount, CancellationToken cancellationToken)
Parameters
accountIdMailAccountIdThe account owning the folder.
folderResolutionIdMailFolderResolutionIdThe alias binding whose occurrences are read.
uidValidityImapUidValidityThe UID space the caller's open session is selected under.
maxEmailCountintThe greatest number of occurrences to report, oldest UID first.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<IReadOnlyList<RemoteEmailMetadata>>
What each waiting occurrence was stored with, which is what a fetch of it has to be recorded under.
Remarks
Only occurrences of the supplied UID space are reported. A folder the server recreated is a different UID space whose stored occurrences name emails the current one says nothing about, so fetching one by its recorded UID would retrieve a different message.