Table of Contents

Class ContactAddressText

Namespace
MailFathom.Application.Contacts
Assembly
MailFathom.Application.dll

The one thing every reader of a caller's address text has to refuse before the domain sees it.

public static class ContactAddressText
Inheritance
ContactAddressText
Inherited Members

Remarks

An address reaches the book as text somebody typed rather than as an addr-spec a mail parser produced, and the header form is what they have in front of them. Anna Kowalska <anna@example.test> is already refused, because the display name carries whitespace the domain will not admit in a local part — but the brackets alone are not: <anna@example.test> splits on the last at-sign into two halves that each look usable, so it is stored as an address nobody's mail will ever arrive under and a lookup for the person it names answers nobody.

It is stated once here rather than at each reader, because the three that exist refuse it with different failures — a malformed identifier at the protocol boundary, an invalid record inside a write, a refusal sentence on the administrative endpoint — and a rule spelled three times is a rule one of them will eventually stop applying. The domain type is deliberately left alone: it is handed addr-specs a mail parser has already unwrapped, and a header form never reaches it from that direction.

Methods

IsAngleAddress(string)

Reports whether the text is an address written in the angle brackets a header wraps one in.