Table of Contents

Method FolderDirectory

Namespace
MailFathom.Domain.Exports
Assembly
MailFathom.Domain.dll

FolderDirectory(IReadOnlyList<string>, bool)

Composes the directory one folder's Maildir sits at, relative to the archive root.

public static string FolderDirectory(IReadOnlyList<string> pathSegments, bool isInbox)

Parameters

pathSegments IReadOnlyList<string>

The folder's own path, outermost segment first, exactly as the account holds it.

isInbox bool

Whether this folder is the account's inbox, which is the root Maildir rather than a directory beside it.

Returns

string

The empty string for the inbox, and otherwise the encoded .-prefixed directory name.

Exceptions

ArgumentNullException

Thrown when pathSegments is null.

ArgumentException

Thrown when pathSegments is empty for a folder that is not the inbox.