Table of Contents

Property SelectedFolders

Namespace
MailFathom.Application.Emails.Mailboxes
Assembly
MailFathom.Application.dll

SelectedFolders

Gets the folders the query is restricted to as account-and-alias pairs, deduplicated and ordered, or empty for every folder.

public IReadOnlyList<MailFolderIdentity> SelectedFolders { get; }

Property Value

IReadOnlyList<MailFolderIdentity>

Remarks

A folder named by alias is paired with every account in scope, because an alias is the caller's own name and means the same folder on each of them. A folder named by role is paired with the account that answered for it, because a role means a different folder on each account: role:Junk across two accounts is two pairs rather than two names either account might carry. Reading the aliases alone would admit a folder of the second account that happens to share the first account's junk alias and plays no role at all — the same mistake AccountScopedMailFolders exists to prevent on the admitting side.

An account of AccountIds that appears in no pair while the list is non-empty contributes nothing, which is what an account mapping no folder for a named role means. That is why a query reads this against the accounts in scope rather than against the pairs alone.