Skip to content

EmailSubject Class

Identifies a subject by an email address (RFC 9493 Section 3.2.2).

C#
public sealed class EmailSubject : Abblix.SecurityEvents.Subjects.SubjectIdentifier

Inheritance System.ObjectSubjectIdentifier → EmailSubject

Constructors

EmailSubject(string) Constructor

Identifies a subject by an email address (RFC 9493 Section 3.2.2).

C#
public EmailSubject(string email);

Parameters

email System.String

The subject's email address, formatted as an "addr-spec" (RFC 5322 Section 3.4.1) and identifying a deliverable mailbox (RFC 5321). REQUIRED, and must be neither null nor empty.

Properties

EmailSubject.Email Property

The email address, as received.

C#
public string Email { get; }

Property Value

System.String

Remarks

Deliberately not canonicalised. RFC 9493 Section 3.2.2.1 records that email canonicalisation is not standardised and that a receiver cannot know the sending provider's algorithm, so it puts the choice on the receiver: apply the algorithm your own mail system uses. Folding case here would silently answer that question on the receiver's behalf and destroy the original. EmailCanonicalization offers the one transformation the specification does settle, to be applied when comparing rather than when storing.