Table of Contents

Struct RemoteFolderPath

Namespace
MailFathom.Domain.Folders
Assembly
MailFathom.Domain.dll

Locates a folder the way the mail server advertises it.

public readonly record struct RemoteFolderPath : IEquatable<RemoteFolderPath>
Implements
Inherited Members

Remarks

The path is owned by the server and may change under a stable MailFolderAlias. It is treated as sensitive metadata, because a folder path can itself carry personal or organizational information, and it is therefore written only to the audit event that records a mapping change.

Properties

HierarchyDelimiter

Gets the character the server separates hierarchy levels with, or null when the folder is flat or the server reported none.

Value

Gets the server-advertised path.

Methods

Create(string)

Creates a path an operator wrote, whose hierarchy delimiter the server has not reported.

Create(string, char?)

Creates a path an operator wrote, together with a hierarchy delimiter when one is known.

ToHierarchyLevels()

Splits the path into its hierarchy levels.

ToString()

Returns the fully qualified type name of this instance.

TryCreate(string, char?, out RemoteFolderPath)

Creates a path from what a server advertised, keeping its text exactly and reporting rather than throwing when it names no folder.