Table of Contents

Constructor MailboxExport

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

MailboxExport(MailboxExportId, MailAccountId, string?, MailboxExportState, DateTimeOffset, long, long, long?, string?, DateTimeOffset?, DateTimeOffset?, MailFathomErrorCode?)

One export of a mailbox: what was asked for, where it stands, and what became of its archive.

public MailboxExport(MailboxExportId Id, MailAccountId Account, string? FolderPath, MailboxExportState State, DateTimeOffset RequestedAt, long MessageCount, long ByteCount, long? ArchiveByteLength, string? ObjectLocator, DateTimeOffset? CompletedAt, DateTimeOffset? ExpiresAt, MailFathomErrorCode? FailureCode)

Parameters

Id MailboxExportId

The identity a caller follows, downloads, cancels, and deletes the export by.

Account MailAccountId

The account whose mail is being carried out.

FolderPath string

The one folder the export covers, or null when it covers the whole mailbox.

State MailboxExportState

Where the export stands.

RequestedAt DateTimeOffset

When the export was asked for.

MessageCount long

How many messages have reached the archive, and the final count once it is written.

ByteCount long

How many bytes of stored mail those messages carried, before the archive's own overhead.

ArchiveByteLength long?

How large the finished archive is, or null while there is none.

ObjectLocator string

The content store's key for the archive, or null once there is nothing to serve.

CompletedAt DateTimeOffset?

When the archive was finished, absent until it was.

ExpiresAt DateTimeOffset?

When the archive is deleted if nobody deletes it first, absent until it exists.

FailureCode MailFathomErrorCode?

The stable code of what stopped a failed export, absent for every other state.

Remarks

The locator is the deployment's own, never a caller's: a download is served by reading it here and streaming the object, so no response ever carries a key and no caller can name an object of its own.

The counts are the export's own progress rather than the measurement that preceded it. The measurement is an estimate taken before any job existed; these are what was actually written, which is what an operator compares against it when a mailbox grew while the archive was being produced.