Unclaimable.Email
0.8.2
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
<PackageReference Include="Unclaimable.Email" Version="0.8.2" />
<PackageVersion Include="Unclaimable.Email" Version="0.8.2" />
<PackageReference Include="Unclaimable.Email" />
paket add Unclaimable.Email --version 0.8.2
#r "nuget: Unclaimable.Email, 0.8.2"
#:package Unclaimable.Email@0.8.2
#addin nuget:?package=Unclaimable.Email&version=0.8.2
#tool nuget:?package=Unclaimable.Email&version=0.8.2
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:
- DNS/IDN normalization to lowercase ASCII.
- Exact protected domains and legitimate subdomains.
- Embedded protected domains such as
example.com.attacker.net. - Selected Unicode and ASCII confusables.
- Bounded Damerau-Levenshtein typo distance, including adjacent transpositions.
- 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 | Versions 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. |
-
.NETStandard 2.0
- Unclaimable (>= 0.8.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.