Table of Contents

Interface IMailAccountCatalog

Namespace
MailFathom.Application.Accounts
Assembly
MailFathom.Application.dll

Names the mail accounts this deployment serves.

public interface IMailAccountCatalog

Remarks

A query use case asks this before it reads anything, and it asks for two reasons. An account identifier nobody configured is refused rather than answered with an empty page, because at a boundary a client reaches an empty page tells the client the identifier exists and holds no mail, which turns a list operation into a way to enumerate accounts. A request that names no account is then narrowed to this set rather than left unrestricted, because removing an account from configuration must stop its stored mail from being readable even though its rows remain.

The set stays inside the application: a use case reads it to bound its own query, and nothing publishes it to a caller. What a caller learns is only whether the identifier they themselves named was accepted.

Properties

ServedAccountIds

Gets the accounts this deployment is configured to serve, deduplicated and ordered.