Class MailFolderMapping
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
Expresses how an operator wants one alias to find its remote folder.
public sealed record MailFolderMapping : IEquatable<MailFolderMapping>
- Inheritance
-
MailFolderMapping
- Implements
- Inherited Members
Remarks
A mapping is the whole of what configuration says about a folder. Which remote folder it currently names is discovery's answer, not the operator's, which is why nothing here carries a generation or a resolved path.
Properties
- Alias
Gets the operator-facing folder name.
- RemotePath
Gets the configured remote path, which is present exactly when Target is RemotePath.
- SpecialUse
Gets the configured special-use role, which is present exactly when Target is SpecialUse.
- Target
Gets which way this mapping names its remote folder.
Methods
- ToRemotePath(MailFolderAlias, RemoteFolderPath)
Maps an alias onto the server-advertised path an operator wrote.
- ToSpecialUse(MailFolderAlias, MailFolderSpecialUse)
Maps an alias onto a special-use role, so the server's own naming stays out of configuration.