]> gitweb.michael.orlitzky.com - email-validator.git/blob - email-validator.cabal
Remove the "--input" and "--output" command-line flags.
[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 < 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 main-is:
64 Main.hs
65
66 hs-source-dirs:
67 src/
68
69 other-modules:
70 CommandLine
71 EmailAddress
72 Paths_email_validator
73
74 ghc-options:
75 -Weverything
76 -Wno-implicit-prelude
77 -Wno-safe
78 -Wno-unsafe
79 -Wno-all-missed-specialisations
80 -rtsopts
81 -threaded
82 -optc-O3
83 -optc-march=native
84 -O2
85
86
87 test-suite testsuite
88 type: exitcode-stdio-1.0
89 hs-source-dirs: src test
90 main-is: TestSuite.hs
91
92 build-depends:
93 base < 5,
94 bytestring >= 0.10,
95 cmdargs >= 0.10,
96 dns >= 2,
97 email-validate >= 2,
98 HUnit >= 1.2,
99 parallel-io >= 0.3,
100 pcre-light >= 0.4,
101 tasty >= 0.8,
102 tasty-hunit >= 0.8
103
104 other-modules:
105 EmailAddress
106
107 -- It's not entirely clear to me why I have to reproduce all of this.
108 ghc-options:
109 -Weverything
110 -Wno-implicit-prelude
111 -Wno-safe
112 -Wno-unsafe
113 -Wno-all-missed-specialisations
114 -rtsopts
115 -threaded
116 -optc-O3
117 -optc-march=native
118 -O2
119
120
121 test-suite doctests
122 type: exitcode-stdio-1.0
123 hs-source-dirs: test
124 main-is: Doctests.hs
125 build-depends:
126 base < 5,
127 -- Additional test dependencies.
128 doctest >= 0.9
129
130 -- It's not entirely clear to me why I have to reproduce all of this.
131 ghc-options:
132 -Wall
133 -fwarn-hi-shadowing
134 -fwarn-missing-signatures
135 -fwarn-name-shadowing
136 -fwarn-orphans
137 -fwarn-type-defaults
138 -fwarn-tabs
139 -fwarn-incomplete-record-updates
140 -fwarn-monomorphism-restriction
141 -fwarn-unused-do-bind
142 -rtsopts
143 -threaded
144 -optc-O3
145 -optc-march=native
146 -O2
147
148
149
150 source-repository head
151 type: git
152 location: http://gitweb.michael.orlitzky.com/email-validator.git
153 branch: master