In F</etc/aliases>:
- edwardng: |edwardng --from=edwardng@example.org --key=12345678
+ edwardng: |edwardng --from=edwardng@example.org --key=12345678 --keydir=/srv/edwardng-keydir --debug --logfile=/var/log/edwardng
=head1 DESCRIPTION
Path to GnuPG homedir.
+=item B<--logfile>=I</path/to/logfile>
+
+If B<--debug>, append debug information to this file. Ignored if B<--no-debug>.
+
=item B<--passphrase>=I<passphrase>
Private key passphrase.
Corresponds to B<--keydir>.
+=item EDWARDNG_LOGFILE
+
+Corresponds to B<--logfile>.
+
=item EDWARDNG_PASSPHRASE
Corresponds to B<--passphrase>.
'from=s' => \$ENV{EDWARDNG_FROM},
'key=s' => \$ENV{EDWARDNG_KEY},
'keydir=s' => \$ENV{EDWARDNG_KEYDIR},
+ 'logfile=s' => \$ENV{EDWARDNG_LOGFILE},
'passphrase=s' => \$ENV{EDWARDNG_PASSPHRASE},
'tmpl-path=s' => \$ENV{EDWARDNG_TMPL_PATH},
'use-agent!' => \$ENV{EDWARDNG_USE_AGENT},
);
my $tmpl_path = $ENV{EDWARDNG_TMPL_PATH} // 'en';
+ open STDERR, '>>', $ENV{EDWARDNG_LOGFILE} if $ENV{EDWARDNG_LOGFILE};
my $parser = MIME::Parser->new;
$parser->decode_bodies(0);