]> gitweb.michael.orlitzky.com - email-validator.git/blob - doc/man1/email-validator.1
Add an --rfc5322 option which validates against the real RFC syntax.
[email-validator.git] / doc / man1 / email-validator.1
1 .TH email-validator 1
2
3 .SH NAME
4 email-validator \- Perform basic syntax and deliverability checks on email addresses.
5
6 .SH SYNOPSIS
7
8 \fBemail-validator\fR [\fB\-har\fR] [\fB-i \fIFILE\fR] [\fB-o \fIFILE\fR] \fI<input>\fR
9
10 .SH INPUT
11
12 .P
13 The \fIinput\fR (default: stdin) should be a list of email addresses,
14 one per line. Empty lines will be ignored.
15
16 .SH OUTPUT
17
18 .P
19 Valid email addresses will be written to the output file (default:
20 stdout), one per line.
21
22 .SH DESCRIPTION
23
24 .P
25 We check the validity of an email address using three techniques:
26
27 .IP \[bu] 2
28 We ensure that the length of local and domain parts is within the
29 RFC-specified limits.
30
31 .IP \[bu]
32 A regular expression is used to check for invalid characters and syntax.
33
34 .IP \[bu]
35 We confirm the existence of a MX record for the domain part of the
36 address. This is not required; in fact many domains accept mail via
37 an 'A' record for e.g. example.com which is used in lieu of an MX
38 record. This behavior can be controlled via the \fR\-a\fR flag.
39
40 .P
41 These checks are performed in parallel using the number of available
42 threads. To increase the number of threads, you can pass the
43 appropriate flag to the GHC runtime.
44
45 .P
46 This will set the number of threads to 25:
47
48 .nf
49 .B $ email-validator -i addresses.csv +RTS -N25
50
51 .SH OPTIONS
52
53 .IP \fB\-\-accept-a\fR,\ \fB\-a\fR
54 Accept an 'A' record for the domain instead of requiring an MX record
55 (the default).
56
57 .IP \fB\-\-input\fR,\ \fB\-i\fR
58 Specify the input file containing a list of email addresses, rather
59 than using stdin (the default).
60
61 .IP \fB\-\-output\fR,\ \fB\-o\fR
62 Specify the output file to which the good addresses will be written,
63 rather than using stdout (the default).
64
65 .IP \fB\-\-rfc5322\fR,\ \fB\-r\fR
66 Verify addresses against RFC 5322 rather than a naive regular
67 expression. This is much more lenient than the default.
68
69 .SH BUGS
70
71 .P
72 Send bugs to michael@orlitzky.com.