Struct AppendedMailFlags
- Namespace
- MailFathom.Domain.Delivery.Filing
- Assembly
- MailFathom.Domain.dll
The flags a message carries into the folder MailFathom appends it to.
public readonly record struct AppendedMailFlags : IEquatable<AppendedMailFlags>
- Implements
- Inherited Members
Remarks
Two flags and no more, because those are the two an appended copy of the owner's own message can honestly carry.
\Draft states that the message is still being composed or is still waiting to go out, and \Seen states
that the owner need not read what they wrote themselves — a sent copy arriving unread would put an unread count on
the owner's own outgoing mail in every client they open.
The set is closed rather than a general flag bag, for the reason ADR 0007 keeps the mutations closed: a flag MailFathom writes is an assertion it has to be able to stand behind, and these two are the ones the filing itself establishes. Nothing else is expressible, so no caller can widen it.
This says nothing about a message already in a mailbox. It is the initial flag set of a message being created by an
APPEND, which is a different act from the STORE that changes a message somebody already has.
Constructors
- AppendedMailFlags(bool, bool)
The flags a message carries into the folder MailFathom appends it to.
Properties
- Draft
Gets the flag set of a message that has not left the deployment yet.
- IsDraft
Whether the copy is marked
\Draft, which says the message has not left yet.
- IsSeen
Whether the copy is marked
\Seen, which says nobody has to read it.
- None
Gets the flag set of a copy that carries neither flag.
- Seen
Gets the flag set of a copy of a message that has already been delivered.