Table of Contents

Interface ILocalEmailStateStore

Namespace
MailFathom.Application.Mail.Mutations.Local
Assembly
MailFathom.Application.dll

Reads and writes the stored state a change on a held account commits to directly.

public interface ILocalEmailStateStore

Remarks

Every member joins the session it is given, because a local change and its audit entry are one transaction. A read is scoped to the account it names, so a message of another account answers as absent rather than as found.

Methods

EraseAsync(IPersistenceSession, MailAccountId, StoredEmailId, CancellationToken)

Erases the message, its payload, and everything derived from it.

ReadAsync(IPersistenceSession, MailAccountId, StoredEmailId, CancellationToken)

Reads where a stored message is and the flags and keywords it carries.

WriteAsync(IPersistenceSession, MailAccountId, StoredEmailId, LocalEmailState, CancellationToken)

Writes the local folder, the flags, and the keywords a change left the message with.