Unclaimable.Email 0.8.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Unclaimable.Email --version 0.8.2
                    
NuGet\Install-Package Unclaimable.Email -Version 0.8.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Unclaimable.Email" Version="0.8.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Unclaimable.Email" Version="0.8.2" />
                    
Directory.Packages.props
<PackageReference Include="Unclaimable.Email" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Unclaimable.Email --version 0.8.2
                    
#r "nuget: Unclaimable.Email, 0.8.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Unclaimable.Email@0.8.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Unclaimable.Email&version=0.8.2
                    
Install as a Cake Addin
#tool nuget:?package=Unclaimable.Email&version=0.8.2
                    
Install as a Cake Tool

Unclaimable.Email

Email-address identity and protected-domain impersonation checks.

Package version: 0.8.2

Install

dotnet add package Unclaimable.Email --version 0.8.2

Cross-platform app compatibility

Unclaimable.Email targets netstandard2.0 and is compile-checked in .NET MAUI, Blazor WebAssembly, WPF, Windows Forms, Console, Worker Service, Avalonia, and Uno Platform consumers.

It contains no UI-framework dependency, so the same email checker can be used from client, desktop, mobile, or server application code.

Quick start

using Unclaimable.Email;

var options = new EmailOptions();
options.ProtectedDomains.Add("lidl.nl");
options.IssuingDomains.Add("lidl.nl");

var checker = new EmailChecker(options);

var external = checker.CheckExistingAddress("admin@lidi.nl");
var created = checker.CheckNewAddress("bluegarden@lidl.nl");

The email local part is checked with an email-adapted Unclaimable policy. Domain checks are handled separately.

In 0.8.2, local-part identity protection starts from the same Core defaults as the main checker, including default-on multilingual profanity matching across the localized profanity datasets: country, city, celebrity, nationality, currency, religion, landmark, event, award, fictional-character, franchise, profession, and military rules are enabled by default, while Rule.Numbers remains disabled. Email-specific syntax concerns are adjusted separately, so username-oriented length, whitespace, separator, blocked-character, and shape checks are not applied as ordinary username restrictions.

Customize local-part identity checks

0.8.2 local-part obfuscation sensitivity

The local-part checker inherits Core's new sensitivity setting through LocalPartOptions:

var options = new EmailOptions();

options.LocalPartOptions.ObfuscationSensitivity =
    ObfuscationSensitivity.High;

Medium is the Core default. This setting affects local-part reserved-identity matching only; protected-domain typo/confusable detection remains controlled by the Email-specific domain options.

Email syntax and Core identity checks are separate. EmailOptions.LocalPartOptions exposes the Core Options used for the local part.

Use the same narrow exception APIs when an email naming convention needs them:

var options = new EmailOptions();

options.LocalPartOptions.AllowIdentifierForRule(
    "Charlotte",
    Rule.PopularCityNames);

options.LocalPartOptions.AllowedIdentifiers.Add(
    "supportive");

options.LocalPartOptions.Reserve(
    "billingdesk",
    ReservedMatchMode.Exact);

Username-specific shape and separator rules are already relaxed by the Email package because valid email local parts have different syntax requirements. Protected identity data, reserved-name matching, and application reservations still apply.

A Core exception changes only the local-part identity checker. It does not disable protected-domain typo, confusable, or label-reuse detection.

Existing vs newly issued addresses

Use CheckExistingAddress(...) for addresses that already exist outside your application.

Use CheckNewAddress(...) when your application is issuing a new address. If IssuingDomains is configured, a new address must use one of those domains or a real subdomain.

var existing = checker.CheckExistingAddress("bluegarden@lidi.nl");
var issued = checker.CheckNewAddress("bluegarden@lidl.nl");

Protected domains

var options = new EmailOptions();

options.ProtectedDomains.Add("example.com");
options.ProtectedDomains.Add("example.org");

Exact protected domains and their real subdomains are accepted. Lookalike or misleading variants can be rejected.

Protected-domain matching checks:

  1. DNS/IDN normalization to lowercase ASCII.
  2. Exact protected domains and legitimate subdomains.
  3. Embedded protected domains such as example.com.attacker.net.
  4. Selected Unicode and ASCII confusables.
  5. Bounded Damerau-Levenshtein typo distance, including adjacent transpositions.
  6. Protected registrant-label reuse on other TLDs or lure labels.

The default maximum typo distance is 1.

options.MaximumDomainEditDistance = 2;

Supported values are 0 through 2.

Issuing domains

options.IssuingDomains.Add("example.com");

Issuing domains are automatically treated as protected domains.

Detection controls

options.DetectUnicodeLookalikes = true;
options.DetectTypographicalLookalikes = true;
options.DetectProtectedLabelReuse = true;

Result diagnostics

EmailResult exposes the primary EmailFailureKind, the local-part Unclaimable result, DomainLookalikeKind, and the matched protected domain.

A local-part rejection remains the primary failure when both the local part and domain are suspicious, while the domain diagnostic is still retained.

For example, admin@lidi.nl can report a reserved local part while also reporting the lidl.nl typo.

Syntax scope

The package validates practical unquoted mailbox local parts plus DNS/IDN domain shape.

It does not perform DNS or MX lookups and does not prove that a domain or mailbox exists.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 142 10/28/2026
0.8.5 983 10/14/2026
0.8.4 168 10/12/2026
0.8.3 110 10/9/2026
0.8.2 122 10/2/2026
0.8.1 96 10/2/2026
0.8.0 6,139 9/21/2026
0.7.8 434 9/18/2026
0.7.7 118 9/18/2026
0.7.6 110 9/18/2026