Table of Contents

Method EncodeSegment

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

EncodeSegment(string)

Writes one path segment so that nothing an extractor reads as structure survives in it.

public static string EncodeSegment(string segment)

Parameters

segment string

The folder name segment, as the account holds it.

Returns

string

The segment's UTF-8 bytes with every byte outside ASCII letters, digits, -, and _ percent-encoded.

Exceptions

ArgumentNullException

Thrown when segment is null.