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