#!/usr/bin/perl -w use v5.14; use App::EdwardNG; App::EdwardNG->run; __END__ =encoding utf-8 =head1 NAME edwardng - GnuPG email sign/encrypt testing bot =head1 SYNOPSIS Manually: edwardng --from=edwardng@example.org --key=12345678 < mail.eml In F: edwardng: |edwardng --from=edwardng@example.org --key=12345678 =head1 DESCRIPTION EdwardNG is a reimplementation of the Edward reply bot referenced in L. It reads an email from STDIN, checks it for PGP signatures and encryption, then replies appropriately. =head1 OPTIONS =over =item B<--always-trust>, B<--no-always-trust> 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>. =item B<--debug>, B<--no-debug> If B<--debug>, output some debugging information on STDERR. Defaults to B<--no-debug> =item B<--from>=I
Mail address to send messages from. =item B<--key>=I ID of key used for encrypting replies. =item B<--keydir>=I Path to GnuPG homedir. =item B<--passphrase>=I Private key passphrase. =item B<--tmpl-path>=I 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>. =item B<--use-agent>, B<--no-use-agent> If B<--use-agent>, use L. Defaults to B<--no-gpg-agent>. =back =head1 ENVIRONMENT Configuration can also be done via the environment. Use 1 for true and 0 for false. Command-line options override environment variables. =over =item EDWARDNG_ALWAYS_TRUST Corresponds to B<--always-trust> (if true) and B<--no-always-trust> (if false). =item EDWARDNG_DEBUG Corresponds to B<--debug> (if true) and B<--no-debug> (if false). =item EDWARDNG_FROM Corresponds to B<--from>. =item EDWARDNG_KEY Corresponds to B<--key>. =item EDWARDNG_KEYDIR Corresponds to B<--keydir>. =item EDWARDNG_PASSPHRASE Corresponds to B<--passphrase>. =item EDWARDNG_TMPL_PATH Corresponds to B<--tmpl-path>. =item EDWARDNG_USE_AGENT Corresponds to B<--use-agent> (if true) and B<--no-use-agent> (if false). =back =head1 SEE ALSO L =head1 AUTHOR Marius Gavrilescu, Emarius@ieval.roE =head1 COPYRIGHT AND LICENSE Copyright (C) 2014 by Fundația Ceata This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available. =cut