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