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 — with one exception: on an account whose mailbox MailFathom holds, the last level of the path is taken as the name of the local folder created for the first arrival from it, and is stored and served to the account's own user as that folder's name.

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.

NamesSameFolderAs(RemoteFolderPath)

Answers whether two paths name the same folder on the server.

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.