Table of Contents

Method MeasureAsync

Namespace
MailFathom.Application.Mail.Export
Assembly
MailFathom.Application.dll

MeasureAsync(MailAccountId, string?, CancellationToken)

Sums what the scope holds, per folder and in total.

Task<MailboxExportMeasurement> MeasureAsync(MailAccountId account, string? folderPath, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account whose mailbox is measured.

folderPath string

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

cancellationToken CancellationToken

Cancels the read.

Returns

Task<MailboxExportMeasurement>

The measurement, which is empty when the scope holds no stored message.

Exceptions

ArgumentException

Thrown when account names nothing.