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
messageIdstringThe
Message-IDheader value.inReplyTostringThe
In-Reply-Toheader value.referencesIEnumerable<string>The
Referencesheader 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.