4 author: Michael Orlitzky
5 maintainer: Michael Orlitzky <michael@orlitzky.com>
6 homepage: https://michael.orlitzky.com/code/email-validator.xhtml
7 bug-reports: mailto:michael@orlitzky.com
9 license: AGPL-3.0-or-later
10 license-file: doc/LICENSE
14 doc/man1/email-validator.1
16 Perform basic syntax and deliverability checks on email addresses.
18 Validate an email address using three techniques:
20 * Ensuring that the length of local and domain parts is within the
23 * A syntax check using a regular expression, or the full RFC 5322
24 grammar (see the @--rfc5322@ option).
26 * Confirmation of the existence of an @MX@ record for the domain
27 part of the address. NULLMX (RFC7505) records are not
28 accepted. This is not required; in fact many domains accept mail
29 via an @A@ record for (say) example.com which is used in lieu of
30 an @MX@ record. This behavior can be controlled via the
31 @--accept-a@ flag, but note that @--accept-a@ is ignored for
32 domains that have NULLMX records.
34 These checks are performed in parallel using the number of available
35 threads. To increase the number of threads, you can pass the
36 appropriate flag to the GHC runtime.
38 This will set the number of threads to 25:
41 $ email-validator +RTS -N25 < addresses.csv
46 The @input@ (via stdin) should be a list of email addresses,
47 one per line. Empty lines will be ignored.
51 Valid email addresses will be written to stdout, one per line.
54 executable email-validator
86 type: exitcode-stdio-1.0
87 hs-source-dirs: src test
88 default-language: Haskell2010
105 type: exitcode-stdio-1.0
107 default-language: Haskell2010
111 -- Additional test dependencies.
115 source-repository head
117 location: https://gitweb.michael.orlitzky.com/email-validator.git