Constructor RestoredEmailState
- Namespace
- MailFathom.Domain.Emails
- Assembly
- MailFathom.Domain.dll
RestoredEmailState(bool, bool, bool, bool, RemoteEmailKeywords)
The state a held message carries back onto the source server when custody returns to mirroring.
public RestoredEmailState(bool IsSeen, bool IsAnswered, bool IsFlagged, bool IsDraft, RemoteEmailKeywords Keywords)
Parameters
IsSeenboolWhether the message is read, as MailFathom holds it.
IsAnsweredboolWhether the message has been replied to, as MailFathom holds it.
IsFlaggedboolWhether the message is starred, as MailFathom holds it.
IsDraftboolWhether the source presented the message as one being composed, as MailFathom holds it.
KeywordsRemoteEmailKeywordsThe keywords the message carries, as MailFathom holds them.
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.