Table of Contents

Method Create

Namespace
MailFathom.Domain.Emails
Assembly
MailFathom.Domain.dll

Create(string?, string?, IEnumerable<string>?)

Builds the reference set from what the message's threading headers carried.

public static EmailThreadReferences Create(string? messageId, string? inReplyTo, IEnumerable<string>? references)

Parameters

messageId string

The Message-ID header value.

inReplyTo string

The In-Reply-To header value.

references IEnumerable<string>

The References header values, in header order.

Returns

EmailThreadReferences

The normalized reference set, which is None when nothing usable was written.

Remarks

Every identifier is normalized the same way, so an ancestor written with angle brackets in one message and without them in another is one identifier rather than two. Duplicates within References collapse while the header's order is kept, because that order is the path from the root and is what a future thread view walks.