Table of Contents

Class EmailQueueAdminData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

One outbound email, as an operator needs to see it.

public sealed class EmailQueueAdminData
Inheritance
EmailQueueAdminData
Inherited Members

Remarks

The body is deliberately absent. A verification email's body contains the verification link, and that link is a credential: anybody who can read it can verify the account it belongs to without ever holding the mailbox. The projection that fills this type does not name the body column, so the text never enters the panel process at all rather than being fetched and then carefully not serialized. What kind of mail it is — the only question the page asks of a message it cannot read — comes from Kind, which is the column the sender itself acts on, rather than from pattern-matching the subject line.

Properties

Attempts

Delivery attempts recorded so far.

public int Attempts { get; set; }

Property Value

int

ClaimedAt

When it was claimed (UTC), or null.

public DateTime? ClaimedAt { get; set; }

Property Value

DateTime?

ClaimedBy

The login server holding it, or null.

public string ClaimedBy { get; set; }

Property Value

string

CreatedAt

When it was enqueued (UTC).

public DateTime CreatedAt { get; set; }

Property Value

DateTime

ID

Primary key.

public long ID { get; set; }

Property Value

long

Kind

What the mail is for, as stored on the row.

public EmailKind Kind { get; set; }

Property Value

EmailKind

Remarks

The page used to infer this from the subject text. It no longer has to: this is the same value the drain reads to decide whether delivering the message ends the account's unverified grace period, so what an operator sees and what the sender does cannot disagree.

LastError

The error from the most recent failed attempt, or null.

public string LastError { get; set; }

Property Value

string

RecipientEmail

Who it is addressed to.

public string RecipientEmail { get; set; }

Property Value

string

RecipientUsername

The account it belongs to.

public string RecipientUsername { get; set; }

Property Value

string

SentAt

When it went out (UTC), or null.

public DateTime? SentAt { get; set; }

Property Value

DateTime?

State

The state the four columns above add up to. See EmailQueueState.

public EmailQueueState State { get; set; }

Property Value

EmailQueueState

Subject

The subject line.

public string Subject { get; set; }

Property Value

string