Table of Contents

Method Read

Namespace
MailFathom.Application.EmailContent.Cleaning
Assembly
MailFathom.Application.dll

Read(IReadOnlyList<MailBodyCleaningSegment>, int)

Reads a proposal as the blocks it keeps, or refuses it.

public static IReadOnlyList<int>? Read(IReadOnlyList<MailBodyCleaningSegment> segments, int blockCount)

Parameters

segments IReadOnlyList<MailBodyCleaningSegment>

The ranges as a producer wrote them.

blockCount int

How many top-level blocks the document holds, which the ranges have to cover exactly.

Returns

IReadOnlyList<int>

The indices to keep, in ascending order, or null where the ranges do not describe the document.

Exceptions

ArgumentNullException

Thrown when segments is null.

ArgumentOutOfRangeException

Thrown when blockCount is negative.