]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
0a1b07561bd25023e79adfbea0ac255edd06a1bf
[email-validator.git] / email-validator.cabal
1 name: email-validator
2 version: 0.0.4
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 -i addresses.csv +RTS -N25
37 @
38 .
39 /Input/
40 .
41 The @input@ file (default: 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 the output file (default:
47 stdout), one per line.
48
49
50 executable email-validator
51 build-depends:
52 base == 4.*,
53 bytestring == 0.10.*,
54 cmdargs == 0.10.*,
55 directory == 1.2.*,
56 dns == 1.*,
57 email-validate == 2.*,
58 HUnit == 1.2.*,
59 parallel-io == 0.3.*,
60 pcre-light >= 0.4,
61 tasty == 0.*,
62 tasty-hunit == 0.8.*
63
64 main-is:
65 Main.hs
66
67 hs-source-dirs:
68 src/
69
70 other-modules:
71 CommandLine
72 EmailAddress
73 ExitCodes
74
75 ghc-options:
76 -Wall
77 -fwarn-hi-shadowing
78 -fwarn-missing-signatures
79 -fwarn-name-shadowing
80 -fwarn-orphans
81 -fwarn-type-defaults
82 -fwarn-tabs
83 -fwarn-incomplete-record-updates
84 -fwarn-monomorphism-restriction
85 -fwarn-unused-do-bind
86 -rtsopts
87 -threaded
88 -optc-O3
89 -optc-march=native
90 -O2
91
92 ghc-prof-options:
93 -prof
94 -auto-all
95 -caf-all
96
97
98 test-suite testsuite
99 type: exitcode-stdio-1.0
100 hs-source-dirs: src test
101 main-is: TestSuite.hs
102 build-depends:
103 base == 4.*,
104 bytestring == 0.10.*,
105 cmdargs == 0.10.*,
106 directory == 1.2.*,
107 dns == 1.*,
108 email-validate == 2.*,
109 HUnit == 1.2.*,
110 parallel-io == 0.3.*,
111 pcre-light >= 0.4,
112 tasty == 0.*,
113 tasty-hunit == 0.8.*
114
115
116 -- It's not entirely clear to me why I have to reproduce all of this.
117 ghc-options:
118 -Wall
119 -fwarn-hi-shadowing
120 -fwarn-missing-signatures
121 -fwarn-name-shadowing
122 -fwarn-orphans
123 -fwarn-type-defaults
124 -fwarn-tabs
125 -fwarn-incomplete-record-updates
126 -fwarn-monomorphism-restriction
127 -fwarn-unused-do-bind
128 -rtsopts
129 -threaded
130 -optc-O3
131 -optc-march=native
132 -O2
133
134
135 test-suite doctests
136 type: exitcode-stdio-1.0
137 hs-source-dirs: test
138 main-is: Doctests.hs
139 build-depends:
140 base == 4.*,
141 -- Additional test dependencies.
142 doctest == 0.9.*
143
144 -- It's not entirely clear to me why I have to reproduce all of this.
145 ghc-options:
146 -Wall
147 -fwarn-hi-shadowing
148 -fwarn-missing-signatures
149 -fwarn-name-shadowing
150 -fwarn-orphans
151 -fwarn-type-defaults
152 -fwarn-tabs
153 -fwarn-incomplete-record-updates
154 -fwarn-monomorphism-restriction
155 -fwarn-unused-do-bind
156 -rtsopts
157 -threaded
158 -optc-O3
159 -optc-march=native
160 -O2
161
162
163
164 source-repository head
165 type: git
166 location: http://gitweb.michael.orlitzky.com/email-validator.git
167 branch: master