Table of Contents

Class RestoredEmailState

Namespace
MailFathom.Domain.Emails
Assembly
MailFathom.Domain.dll

The state a held message carries back onto the source server when custody returns to mirroring.

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

Remarks

It is a sibling of AppendedMailFlags rather than a widening of it, because the two append different things. That one carries what a copy of a message MailFathom composed can honestly assert; this one carries a message somebody else sent, whose flags and keywords are the state the source last showed together with whatever a person did to it while the mailbox was held.

Four of the five system flags, and the omission is \Deleted. The other four are observations MailFathom records per message and would otherwise be lost on the way back, so leaving one out would put a message onto the source asserting less than was taken off it. \Deleted is not an observation about the message but a request that the folder stop holding it, and a restore carrying it would ask the source to expunge the copy it is being handed. See ADR 0034.

None of this reopens the closed mutation surface ADR 0007 defines: these travel on one APPEND stating what the message was, never as a STORE changing what it is.

Constructors

RestoredEmailState(bool, bool, bool, bool, RemoteEmailKeywords)

The state a held message carries back onto the source server when custody returns to mirroring.

Properties

IsAnswered

Whether the message has been replied to, as MailFathom holds it.

IsDraft

Whether the source presented the message as one being composed, as MailFathom holds it.

IsFlagged

Whether the message is starred, as MailFathom holds it.

IsSeen

Whether the message is read, as MailFathom holds it.

Keywords

The keywords the message carries, as MailFathom holds them.