Use File::Share(Dir) for templates
[app-edwardng.git] / edwardng
1 #!/usr/bin/perl -w
2 use v5.14;
3 use App::EdwardNG;
4
5 App::EdwardNG->run;
6
7 __END__
8
9 =encoding utf-8
10
11 =head1 NAME
12
13 edwardng - GnuPG email sign/encrypt testing bot
14
15 =head1 SYNOPSIS
16
17 Manually:
18
19 edwardng --from=edwardng@example.org --key=12345678 < mail.eml
20
21 In F</etc/aliases>:
22
23 edwardng: |edwardng --from=edwardng@example.org --key=12345678
24
25 =head1 DESCRIPTION
26
27 EdwardNG is a reimplementation of the Edward reply bot referenced in L<https://emailselfdefense.fsf.org/>.
28
29 It reads an email from STDIN, checks it for PGP signatures and encryption, then replies appropriately.
30
31 =head1 OPTIONS
32
33 =over
34
35 =item B<--always-trust>, B<--no-always-trust>
36
37 If B<--always-trust>, skip key validation and assume that used keys are always fully trusted. See the gpg(1) manpage, option C<--trust-model always> for more information. Defaults to B<--no-always-trust>.
38
39 =item B<--debug>, B<--no-debug>
40
41 If B<--debug>, output some debugging information on STDERR. Defaults to B<--no-debug>
42
43 =item B<--from>=I<address>
44
45 Mail address to send messages from.
46
47 =item B<--key>=I<keyid>
48
49 ID of key used for encrypting replies.
50
51 =item B<--keydir>=I</path/to/keydir>
52
53 Path to GnuPG homedir.
54
55 =item B<--passphrase>=I<passphrase>
56
57 Private key passphrase.
58
59 =item B<--tmpl-path>=I<path>
60
61 Path to the template directory. Users of the default templates can select the language with this argument. Available languages: en. Defaults to B<--tmpl-path=en>.
62
63 =item B<--use-agent>, B<--no-use-agent>
64
65 If B<--use-agent>, use L<gpg-agent(1)>. Defaults to B<--no-gpg-agent>.
66
67 =back
68
69 =head1 ENVIRONMENT
70
71 Configuration can also be done via the environment. Use 1 for true and 0 for false. Command-line options override environment variables.
72
73 =over
74
75 =item EDWARDNG_ALWAYS_TRUST
76
77 Corresponds to B<--always-trust> (if true) and B<--no-always-trust> (if false).
78
79 =item EDWARDNG_DEBUG
80
81 Corresponds to B<--debug> (if true) and B<--no-debug> (if false).
82
83 =item EDWARDNG_FROM
84
85 Corresponds to B<--from>.
86
87 =item EDWARDNG_KEY
88
89 Corresponds to B<--key>.
90
91 =item EDWARDNG_KEYDIR
92
93 Corresponds to B<--keydir>.
94
95 =item EDWARDNG_PASSPHRASE
96
97 Corresponds to B<--passphrase>.
98
99 =item EDWARDNG_TMPL_PATH
100
101 Corresponds to B<--tmpl-path>.
102
103 =item EDWARDNG_USE_AGENT
104
105 Corresponds to B<--use-agent> (if true) and B<--no-use-agent> (if false).
106
107 =back
108
109 =head1 SEE ALSO
110
111 L<App::EdwardNG>
112
113 =head1 AUTHOR
114
115 Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
116
117 =head1 COPYRIGHT AND LICENSE
118
119 Copyright (C) 2014 by Fundația Ceata
120
121 This library is free software; you can redistribute it and/or modify
122 it under the same terms as Perl itself, either Perl version 5.18.2 or,
123 at your option, any later version of Perl 5 you may have available.
124
125
126 =cut
This page took 0.026845 seconds and 4 git commands to generate.