View source code
Display the source code in std/net/isemail.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Enum std.net.isemail.EmailStatusCode
An email status code, indicating if an email address is valid
or not.
If it is invalid it also indicates why.
The enum base type is
.
int
Enum members
Name | Description |
---|---|
any
|
All finer grained error checking is turned on. Address containing errors or
warnings is considered invalid. A specific email status code will be
returned indicating the error /warning of the address.
|
cFoldingWhitespace
|
Address is valid within the message but cannot be used unmodified for the envelope
|
comment
|
Address contains comments |
deprecatedComment
|
Address contains a comment in a position that is deprecated
|
deprecatedCommentFoldingWhitespaceNearAt
|
Address contains a comment or Folding White Space around the @ sign
|
deprecatedCommentText
|
A comment contains a deprecated character
|
deprecatedFoldingWhitespace
|
Address contains an obsolete form of Folding White Space |
deprecatedLocalPart
|
The local part is in a deprecated form |
deprecatedQuotedPair
|
A quoted pair contains a deprecated character |
deprecatedQuotedText
|
A quoted string contains a deprecated character |
deprecated_
|
Address contains deprecated elements but may still be valid in restricted contexts
|
dnsWarning
|
Address is valid but a DNS check was not successful
|
dnsWarningNoMXRecord
|
Could not find an MX record for this domain but an A-record does exist |
dnsWarningNoRecord
|
Could not find an MX record or an A-record for this domain |
error
|
Address is invalid for any purpose
|
errorBackslashEnd
|
The address cannot end with a backslash |
errorConsecutiveDots
|
The address may not contain consecutive dots |
errorCrNoLf
|
Address contains a carriage return that is not followed by a line feed |
errorDomainHyphenEnd
|
A domain or subdomain cannot end with a hyphen |
errorDomainHyphenStart
|
A domain or subdomain cannot begin with a hyphen |
errorDotEnd
|
Neither part of the address may end with a dot |
errorDotStart
|
Neither part of the address may begin with a dot |
errorExpectingCommentText
|
A comment contains a character that is not allowed
|
errorExpectingDomainText
|
A domain literal contains a character that is not allowed |
errorExpectingQuotedPair
|
The address contains a character that is not allowed in a quoted pair |
errorExpectingQuotedText
|
A quoted string contains a character that is not allowed |
errorExpectingText
|
Address contains a character that is not allowed |
errorFoldingWhitespaceCrflX2
|
Folding White Space contains consecutive CRLF sequences |
errorFoldingWhitespaceCrLfEnd
|
Folding White Space ends with a CRLF sequence |
errorNoDomain
|
Address has no domain part |
errorNoLocalPart
|
Address has no local part |
errorTextAfterCommentFoldingWhitespace
|
Address contains text after a comment or Folding White Space
|
errorTextAfterDomainLiteral
|
Extra characters were found after the end of the domain literal |
errorTextAfterQuotedString
|
Address contains text after a quoted string |
errorUnclosedComment
|
Unclosed comment
|
errorUnclosedDomainLiteral
|
Domain literal is missing its closing bracket |
errorUnclosedQuotedString
|
Unclosed quoted string |
foldingWhitespace
|
Address contains Folding White Space |
none
|
Address is either considered valid or not, no finer grained error checking
is performed. Returned email status code will be either Error or Valid.
|
rfc5321
|
Address is valid for SMTP but has unusual elements
|
rfc5321AddressLiteral
|
Address is valid but at a literal address not a domain
|
rfc5321IpV6Deprecated
|
Address is valid but contains a :: that only elides one zero group
|
rfc5321QuotedString
|
Address is valid but contains a quoted string
|
rfc5321TopLevelDomain
|
Address is valid but at a Top Level Domain
|
rfc5321TopLevelDomainNumeric
|
Address is valid but the Top Level Domain begins with a number
|
rfc5322
|
The address is only valid according to the broad definition of RFC 5322. It is otherwise invalid
|
rfc5322Domain
|
Address is RFC 5322 compliant but contains domain characters that are not allowed by DNS |
rfc5322DomainLiteral
|
The domain literal is not a valid RFC 5321 address literal
|
rfc5322DomainLiteralObsoleteText
|
The domain literal is not a valid RFC 5321 address literal and it contains obsolete characters
|
rfc5322DomainTooLong
|
The domain part is too long |
rfc5322IpV6BadChar
|
The IPv6 address contains an illegal group of characters |
rfc5322IpV6ColonEnd
|
IPv6 address ends with a single colon |
rfc5322IpV6ColonStart
|
IPv6 address starts with a single colon |
rfc5322IpV6GroupCount
|
The IPv6 literal address contains the wrong number of groups |
rfc5322IpV6MaxGroups
|
The IPv6 address has too many groups |
rfc5322IpV6TooManyDoubleColons
|
The IPv6 literal address contains too many :: sequences |
rfc5322LabelTooLong
|
The domain part contains an element that is too long |
rfc5322LocalTooLong
|
The local part of the address is too long |
rfc5322TooLong
|
Address is too long |
valid
|
Address is valid
|
validCategory
|
Address is valid
|
warning
|
Address containing warnings is considered valid , that is,
any status code below 16 is considered valid .
|
Authors
Dominic Sayers