Class EmailQueueAdminData
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
ClaimedAt
When it was claimed (UTC), or null.
public DateTime? ClaimedAt { get; set; }
Property Value
ClaimedBy
The login server holding it, or null.
public string ClaimedBy { get; set; }
Property Value
CreatedAt
When it was enqueued (UTC).
public DateTime CreatedAt { get; set; }
Property Value
ID
Primary key.
public long ID { get; set; }
Property Value
Kind
What the mail is for, as stored on the row.
public EmailKind Kind { get; set; }
Property Value
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
RecipientEmail
Who it is addressed to.
public string RecipientEmail { get; set; }
Property Value
RecipientUsername
The account it belongs to.
public string RecipientUsername { get; set; }
Property Value
SentAt
When it went out (UTC), or null.
public DateTime? SentAt { get; set; }
Property Value
State
The state the four columns above add up to. See EmailQueueState.
public EmailQueueState State { get; set; }
Property Value
Subject
The subject line.
public string Subject { get; set; }