]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
doc/COPYING,email-validator.cabal: use AGPL-3.0+, include COPYING
[email-validator.git] / email-validator.cabal
1 cabal-version: 3.0
2 name: email-validator
3 version: 1.0.1
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
8 category: Utils
9 license: AGPL-3.0-or-later
10 license-file: doc/LICENSE
11 build-type: Simple
12 extra-source-files:
13 doc/COPYING
14 doc/man1/email-validator.1
15 synopsis:
16 Perform basic syntax and deliverability checks on email addresses.
17 description:
18 Validate an email address using three techniques:
19
20 * Ensuring that the length of local and domain parts is within the
21 RFC-specified limits.
22
23 * A syntax check using a regular expression, or the full RFC 5322
24 grammar (see the @--rfc5322@ option).
25
26 * Confirmation of the existence of an @MX@ record for the domain part of
27 the address. This is not required; in fact many domains accept mail
28 via an @A@ record for e.g. example.com which is used in lieu of an @MX@
29 record. This behavior can be controlled via the @--accept-a@ flag.
30
31 These checks are performed in parallel using the number of available
32 threads. To increase the number of threads, you can pass the
33 appropriate flag to the GHC runtime.
34
35 This will set the number of threads to 25:
36
37 @
38 $ email-validator +RTS -N25 < addresses.csv
39 @
40
41 /Input/
42
43 The @input@ (via stdin) should be a list of email addresses,
44 one per line. Empty lines will be ignored.
45
46 /Output/
47
48 Valid email addresses will be written to stdout, one per line.
49
50
51 executable email-validator
52 build-depends:
53 base >= 4.15 && < 5,
54 bytestring >= 0.10,
55 cmdargs >= 0.10,
56 dns >= 2,
57 email-validate >= 2,
58 HUnit >= 1.2,
59 parallel-io >= 0.3,
60 pcre-light >= 0.4,
61 tasty >= 0.8,
62 tasty-hunit >= 0.8
63
64 default-language:
65 Haskell2010
66
67 main-is:
68 Main.hs
69
70 hs-source-dirs:
71 src/
72
73 other-modules:
74 CommandLine
75 EmailAddress
76 Paths_email_validator
77
78 autogen-modules:
79 Paths_email_validator
80
81
82 test-suite testsuite
83 type: exitcode-stdio-1.0
84 hs-source-dirs: src test
85 default-language: Haskell2010
86 main-is: TestSuite.hs
87
88 build-depends:
89 base >= 4.15 && < 5,
90 bytestring >= 0.10,
91 email-validate >= 2,
92 HUnit >= 1.2,
93 pcre-light >= 0.4,
94 tasty >= 0.8,
95 tasty-hunit >= 0.8
96
97 other-modules:
98 EmailAddress
99
100
101 test-suite doctests
102 type: exitcode-stdio-1.0
103 hs-source-dirs: test
104 default-language: Haskell2010
105 main-is: Doctests.hs
106 build-depends:
107 base >= 4.15 && < 5,
108 -- Additional test dependencies.
109 doctest >= 0.9
110
111
112 source-repository head
113 type: git
114 location: https://gitweb.michael.orlitzky.com/email-validator.git
115 branch: master