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