| 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 | edwardng -- |
| 18 | |
| 19 | |
| 20 | =head1 DESCRIPTION |
| 21 | |
| 22 | EdwardNG is a reimplementation of the Edward reply bot referenced in L<https://emailselfdefense.fsf.org/>. |
| 23 | |
| 24 | It takes mail messages, checks them for PGP signatures and encryption, then replies appropriately. |
| 25 | |
| 26 | =head1 OPTIONS |
| 27 | |
| 28 | =over |
| 29 | |
| 30 | =item B<--always-trust>, B<--no-always-trust> |
| 31 | |
| 32 | 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>. |
| 33 | |
| 34 | =item B<--debug>, B<--no-debug> |
| 35 | |
| 36 | If B<--debug>, output some debugging information on STDERR. Defaults to B<--no-debug> |
| 37 | |
| 38 | =item B<--from>=I<address> |
| 39 | |
| 40 | Mail address to send messages from. |
| 41 | |
| 42 | =item B<--key>=I<keyid> |
| 43 | |
| 44 | ID of key used for encrypting replies. |
| 45 | |
| 46 | =item B<--keydir>=I</path/to/keydir> |
| 47 | |
| 48 | Path to GnuPG homedir. |
| 49 | |
| 50 | =item B<--passphrase>=I<passphrase> |
| 51 | |
| 52 | Private key passphrase. |
| 53 | |
| 54 | =item B<--use-agent>, B<--no-use-agent> |
| 55 | |
| 56 | If B<--use-agent>, use L<gpg-agent(1)>. Defaults to B<--no-gpg-agent>. |
| 57 | |
| 58 | =back |
| 59 | |
| 60 | =head1 ENVIRONMENT |
| 61 | |
| 62 | Configuration can also be done via the environment. Use 1 for true and 0 for false. Command-line options override environment variables. |
| 63 | |
| 64 | =over |
| 65 | |
| 66 | =item EDWARDNG_ALWAYS_TRUST |
| 67 | |
| 68 | Corresponds to B<--always-trust> (if true) and B<--no-always-trust> (if false). |
| 69 | |
| 70 | =item EDWARDNG_DEBUG |
| 71 | |
| 72 | Corresponds to B<--debug> (if true) and B<--no-debug> (if false). |
| 73 | |
| 74 | =item EDWARDNG_FROM |
| 75 | |
| 76 | Corresponds to B<--from>. |
| 77 | |
| 78 | =item EDWARDNG_KEY |
| 79 | |
| 80 | Corresponds to B<--key>. |
| 81 | |
| 82 | =item EDWARDNG_KEYDIR |
| 83 | |
| 84 | Corresponds to B<--keydir>. |
| 85 | |
| 86 | =item EDWARDNG_PASSPHRASE |
| 87 | |
| 88 | Corresponds to B<--passphrase>. |
| 89 | |
| 90 | =item EDWARDNG_USE_AGENT |
| 91 | |
| 92 | Corresponds to B<--use-agent> (if true) and B<--no-use-agent> (if false). |
| 93 | |
| 94 | =back |
| 95 | |
| 96 | =head1 SEE ALSO |
| 97 | |
| 98 | L<App::EdwardNG> |
| 99 | |
| 100 | =head1 AUTHOR |
| 101 | |
| 102 | Marius Gavrilescu, E<lt>marius@ieval.roE<gt> |
| 103 | |
| 104 | =head1 COPYRIGHT AND LICENSE |
| 105 | |
| 106 | Copyright (C) 2014 by Marius Gavrilescu |
| 107 | |
| 108 | This library is free software; you can redistribute it and/or modify |
| 109 | it under the same terms as Perl itself, either Perl version 5.18.2 or, |
| 110 | at your option, any later version of Perl 5 you may have available. |
| 111 | |
| 112 | |
| 113 | =cut |