]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
makefile,email-validator.cabal: move ghc-options to the makefile.
[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 cmdargs >= 0.10,
83 dns >= 2,
84 email-validate >= 2,
85 HUnit >= 1.2,
86 parallel-io >= 0.3,
87 pcre-light >= 0.4,
88 tasty >= 0.8,
89 tasty-hunit >= 0.8
90
91 other-modules:
92 EmailAddress
93
94
95 test-suite doctests
96 type: exitcode-stdio-1.0
97 hs-source-dirs: test
98 main-is: Doctests.hs
99 build-depends:
100 base < 5,
101 -- Additional test dependencies.
102 doctest >= 0.9
103
104
105 source-repository head
106 type: git
107 location: http://gitweb.michael.orlitzky.com/email-validator.git
108 branch: master