Table of Contents

Method MeasureAsync

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

MeasureAsync(MailAccountId, string?, CancellationToken)

Reports what an export of a mailbox, or of one folder of it, would carry — without starting one.

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

Parameters

account MailAccountId

The account to measure.

folderPath string

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

cancellationToken CancellationToken

Cancels the measurement.

Returns

Task<MailboxExportMeasurement>

The measurement, per folder and in total.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold the export permission.

MailboxExportRefusedException

Thrown when this deployment has nowhere to keep an archive.