Table of Contents

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

account MailAccountId

The account whose mail is walked.

folderPath string

One folder's path to walk alone, or null for the whole mailbox.

cancellationToken CancellationToken

Cancels the walk.

Returns

IAsyncEnumerable<ExportableMessage>

Every stored message of the scope, each with where it is and what it carries.

Exceptions

ArgumentException

Thrown when account names nothing.