Method WalkAsync
- Namespace
- MailFathom.Application.Mail.Export
- Assembly
- MailFathom.Application.dll
WalkAsync(MailAccountId, string?, CancellationToken)
Walks the stored messages of the scope, folder by folder, in the order the archive writes them.
IAsyncEnumerable<ExportableMessage> WalkAsync(MailAccountId account, string? folderPath, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account whose mail is walked.
folderPathstringOne folder's path to walk alone, or null for the whole mailbox.
cancellationTokenCancellationTokenCancels the walk.
Returns
- IAsyncEnumerable<ExportableMessage>
Every stored message of the scope, each with where it is and what it carries.
Exceptions
- ArgumentException
Thrown when
accountnames nothing.