Blame SOURCES/email_validator.1

rdobuilder 384df2
.TH EMAIL_VALIDATOR "1" "June 2024" "" "User Commands"
rdobuilder 384df2
.SH NAME
rdobuilder 384df2
.B email_validator
rdobuilder 384df2
\(en Validate email addresses
rdobuilder 384df2
.SH SYNOPSIS
rdobuilder 384df2
.B email_validator
rdobuilder 384df2
.I test@example.org
rdobuilder 384df2
.P
rdobuilder 384df2
.B email_validator <
rdobuilder 384df2
.I LIST_OF_ADDRESSES.TXT
rdobuilder 384df2
.SH DESCRIPTION
rdobuilder 384df2
Provide email addresses to validate
rdobuilder 384df2
either as a command-line argument or in
rdobuilder 384df2
.I STDIN
rdobuilder 384df2
separated by newlines.
rdobuilder 384df2
Validation errors will be printed for invalid email addresses.
rdobuilder 384df2
When passing an email address on the command line,
rdobuilder 384df2
if the email address is valid,
rdobuilder 384df2
information about it will be printed.
rdobuilder 384df2
When using
rdobuilder 384df2
.IR STDIN ,
rdobuilder 384df2
no output will be given for valid email addresses.
rdobuilder 384df2
.P
rdobuilder 384df2
Keyword arguments to the Python
rdobuilder 384df2
.B email_validator.validate_email
rdobuilder 384df2
function can be set in environment variables
rdobuilder 384df2
of the same name but uppercase (see
rdobuilder 384df2
.BR ENVIRONMENT ).
rdobuilder 384df2
.SH ENVIRONMENT
rdobuilder 384df2
.\" Supported environment variables can be read
rdobuilder 384df2
.\" from near the beginning of the main() function
rdobuilder 384df2
.\" in email_validator/__main__.py.
rdobuilder 384df2
.\"
rdobuilder 384df2
.\" Default values are in email_validator/__init__.py.
rdobuilder 384df2
.\"
rdobuilder 384df2
.\" Option descriptions are in README.md.
rdobuilder 384df2
.SS "BOOLEAN"
rdobuilder 384df2
For these environment variables,
rdobuilder 384df2
any non-empty string value is interpreted as
rdobuilder 384df2
.BR True ,
rdobuilder 384df2
the empty string is interpreted as
rdobuilder 384df2
.BR False ,
rdobuilder 384df2
and a default value is used if the variable is unset.
rdobuilder 384df2
.TP
rdobuilder 384df2
.B ALLOW_SMPTUTF8
rdobuilder 384df2
Set to false to prohibit internationalized addresses
rdobuilder 384df2
that would require the
rdobuilder 384df2
.UR https://tools.ietf.org/html/rfc6531
rdobuilder 384df2
SMTPUTF8
rdobuilder 384df2
.UE
rdobuilder 384df2
extension.
rdobuilder 384df2
.IP
rdobuilder 384df2
.IR default :
rdobuilder 384df2
true
rdobuilder 384df2
.\" Support ALLOW_DISPLAY_NAME and ALLOW_EMPTY_LOCAL in the CLI
rdobuilder 384df2
.\" https://github.com/JoshData/python-email-validator/pull/145
rdobuilder 384df2
.\" .TP
rdobuilder 384df2
.\" .B ALLOW_EMPTY_LOCAL
rdobuilder 384df2
.\" Set to true to allow an empty local part
rdobuilder 384df2
.\" (i.e. \fB@example.com\fR),
rdobuilder 384df2
.\" e.g. for validating Postfix aliases.
rdobuilder 384df2
.TP
rdobuilder 384df2
.B ALLOW_QUOTED_LOCAL
rdobuilder 384df2
Set to true to allow obscure and potentially problematic email addresses
rdobuilder 384df2
in which the part of the address before the
rdobuilder 384df2
.BR @ \-sign
rdobuilder 384df2
contains spaces,
rdobuilder 384df2
.BR @ \-signs,
rdobuilder 384df2
or other surprising characters
rdobuilder 384df2
when the local part is surrounded in quotes
rdobuilder 384df2
(so-called quoted-string local parts).
rdobuilder 384df2
In the object returned on successful validation,
rdobuilder 384df2
the normalized local part removes any unnecessary backslash-escaping
rdobuilder 384df2
and even removes the surrounding quotes
rdobuilder 384df2
if the address would be valid without them.
rdobuilder 384df2
.IP
rdobuilder 384df2
.IR default :
rdobuilder 384df2
false
rdobuilder 384df2
.TP
rdobuilder 384df2
.B ALLOW_DOMAIN_LITERAL
rdobuilder 384df2
Set to true to allow bracketed IPv4 and "IPv6:"-prefixed IPv6 addresses
rdobuilder 384df2
in the domain part of the email address.
rdobuilder 384df2
No deliverability checks are performed for these addresses.
rdobuilder 384df2
In the object returned on successful validation,
rdobuilder 384df2
the normalized domain will use the condensed IPv6 format, if applicable.
rdobuilder 384df2
The object\(cqs
rdobuilder 384df2
.B domain_address
rdobuilder 384df2
attribute will hold the parsed
rdobuilder 384df2
.B ipaddress.IPv4Address
rdobuilder 384df2
or
rdobuilder 384df2
.B ipaddress.IPv6Address
rdobuilder 384df2
object if applicable.
rdobuilder 384df2
.IP
rdobuilder 384df2
.IR default :
rdobuilder 384df2
false
rdobuilder 384df2
.\" Support ALLOW_DISPLAY_NAME and ALLOW_EMPTY_LOCAL in the CLI
rdobuilder 384df2
.\" https://github.com/JoshData/python-email-validator/pull/145
rdobuilder 384df2
.\" .TP
rdobuilder 384df2
.\" .B ALLOW_DISPLAY_NAME
rdobuilder 384df2
.\" Set to true to allow a display name and bracketed address
rdobuilder 384df2
.\" in the input string, like
rdobuilder 384df2
.\" .BR My\ Name\ <me@example.org> .
rdobuilder 384df2
.\" It\(cqs implemented in the spirit but not the letter of RFC 5322 3.4,
rdobuilder 384df2
.\" so it may be stricter or more relaxed than what you want.
rdobuilder 384df2
.\" The display name, if present, is provided in the returned object\(cqs
rdobuilder 384df2
.\" .Bdisplay_name
rdobuilder 384df2
.\" field after being unquoted and unescaped.
rdobuilder 384df2
.\" .IP
rdobuilder 384df2
.\" .IR default :
rdobuilder 384df2
.\" false
rdobuilder 384df2
.TP
rdobuilder 384df2
.B GLOBALLY_DELIVERABLE
rdobuilder 384df2
.IP
rdobuilder 384df2
.IR default :
rdobuilder 384df2
true
rdobuilder 384df2
.TP
rdobuilder 384df2
.B CHECK_DELIVERABILITY
rdobuilder 384df2
If true, DNS queries are made
rdobuilder 384df2
to check that the domain name in the email address
rdobuilder 384df2
(the part after the
rdobuilder 384df2
.BR @ \-sign)
rdobuilder 384df2
can receive mail\(embasically,
rdobuilder 384df2
that the domain name in the email address has
rdobuilder 384df2
a (non-Null) DNS MX record indicating that it can receive email.
rdobuilder 384df2
If false, skip this DNS-based check.
rdobuilder 384df2
It is recommended to set this to false
rdobuilder 384df2
when performing validation for login pages
rdobuilder 384df2
(but not account creation pages)
rdobuilder 384df2
since re-validation of a previously validated domain in your database
rdobuilder 384df2
by querying DNS at every login is probably undesirable.
rdobuilder 384df2
.IP
rdobuilder 384df2
.IR default :
rdobuilder 384df2
true
rdobuilder 384df2
.TP
rdobuilder 384df2
.B TEST_ENVIRONMENT
rdobuilder 384df2
If true, DNS-based deliverability checks are disabled and
rdobuilder 384df2
.B test
rdobuilder 384df2
and
rdobuilder 384df2
.B **.test
rdobuilder 384df2
domain names are permitted.
rdobuilder 384df2
.IP
rdobuilder 384df2
.IR default :
rdobuilder 384df2
false
rdobuilder 384df2
.SS "FLOATING-POINT"
rdobuilder 384df2
For these environment variables,
rdobuilder 384df2
any non-empty string is parsed as a floating-point value,
rdobuilder 384df2
and a default value is used if the variable is unset.
rdobuilder 384df2
.TP
rdobuilder 384df2
.B DEFAULT_TIMEOUT
rdobuilder 384df2
.IR default :
rdobuilder 384df2
15