Table of Contents

Method NormalizedFormOf

Namespace
MailFathom.Infrastructure.Persistence.Users
Assembly
MailFathom.Infrastructure.dll

NormalizedFormOf(string?)

Gets the form an address is compared in, which is what the deployment-wide uniqueness holds to.

public static string? NormalizedFormOf(string? emailAddress)

Parameters

emailAddress string

The address as it was written.

Returns

string

The address trimmed and upper-cased, or null where none was written.

Remarks

Upper-cased for the reason a folder alias is: it is compared in a database whose collation MailFathom does not control, and the migration that first wrote this column composes the same form with upper(btrim(...)).