Table of Contents

Class MailDocumentLink

Namespace
MailFathom.Application.EmailContent.Rendering.Document
Assembly
MailFathom.Application.dll

Where one of a message's links goes, and what the service made of the way it was written.

public sealed record MailDocumentLink : IEquatable<MailDocumentLink>
Inheritance
MailDocumentLink
Implements
Inherited Members

A target is the one sender-controlled absolute address the default path carries on purpose, and the reason is the whole of this type: a reader has to be shown where a link goes before following it, which needs the address. It is never resolved for any other purpose — no preview, no favicon, no preloading — because each of those would turn a target nobody clicked into a request the sender receives.

AsciiHost is present exactly when the host's Unicode and ASCII forms differ, which is what makes a homograph visible as one rather than as an ordinary name. A client shows both wherever it is present and nothing extra where it is not.

Only http, https, and mailto reach here. A link the reduction could not resolve to one of those leaves its text behind as ordinary words rather than as something a reader could follow.

Constructors

MailDocumentLink(string, string?, string?, MailLinkDeception)

Where one of a message's links goes, and what the service made of the way it was written.

Properties

AsciiHost

The same host in its ASCII form, present only where the two differ.

Deception

What the link's own text said about where it goes.

Host

The target's host as a reader recognizes it, or null for a target that has none.

IsWorthWarningAbout

Gets whether the reader should be warned before following this link.

Target

The absolute target, resolved and carrying only a scheme this contract admits.