Use File::Share(Dir) for templates
[app-edwardng.git] / edwardng
index e111f70ca2042acb7a029afa13da5de31f293c03..4f6124eb02a9e0e5acf844ee31ced84a970a1925 100755 (executable)
--- a/edwardng
+++ b/edwardng
@@ -14,14 +14,19 @@ edwardng - GnuPG email sign/encrypt testing bot
 
 =head1 SYNOPSIS
 
-edwardng --
+Manually:
 
+  edwardng --from=edwardng@example.org --key=12345678 < mail.eml
+
+In F</etc/aliases>:
+
+  edwardng: |edwardng --from=edwardng@example.org --key=12345678
 
 =head1 DESCRIPTION
 
 EdwardNG is a reimplementation of the Edward reply bot referenced in L<https://emailselfdefense.fsf.org/>.
 
-It takes mail messages, checks them for PGP signatures and encryption, then replies appropriately.
+It reads an email from STDIN, checks it for PGP signatures and encryption, then replies appropriately.
 
 =head1 OPTIONS
 
@@ -51,6 +56,10 @@ Path to GnuPG homedir.
 
 Private key passphrase.
 
+=item B<--tmpl-path>=I<path>
+
+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<gpg-agent(1)>. Defaults to B<--no-gpg-agent>.
@@ -87,6 +96,10 @@ Corresponds to B<--keydir>.
 
 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).
@@ -103,7 +116,7 @@ Marius Gavrilescu, E<lt>marius@ieval.roE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (C) 2014 by Marius Gavrilescu
+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,
This page took 0.00993100000000002 seconds and 4 git commands to generate.