Table of Contents

Class MailboxExport

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

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

public sealed record MailboxExport : IEquatable<MailboxExport>
Inheritance
MailboxExport
Implements
Inherited Members

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.

Constructors

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.

Properties

Account

The account whose mail is being carried out.

ArchiveByteLength

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

ByteCount

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

CompletedAt

When the archive was finished, absent until it was.

ExpiresAt

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

FailureCode

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

FolderPath

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

Id

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

IsDownloadable

Gets whether the archive exists and may be served.

IsInFlight

Gets whether the export is still being written, which is what bounds an account to one at a time.

MessageCount

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

ObjectLocator

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

RequestedAt

When the export was asked for.

State

Where the export stands.

Methods

Queued(MailboxExportId, MailAccountId, string?, DateTimeOffset)

Records an export nobody has started work on yet.