If you run into trouble with premail, it might be of value to turn
on some of the debugging options. This can be done on the command
line, or in the .premailrc file. In the former case, add a
+debug=chvy
argument to the command line. In the latter case,
try:
$config{'debug'} = 'chvy';
Here are the meanings of the debug options:
c
: Print command line invocation.
h
: Print headers of input message.
l
: Debug output goes to log instead of stdout.
p
: Print finished message, do PGP.
r
: Print chain chosen (useful in debugging chain
selection).
y
: Print finished message, don't do PGP.
v
: Print all kinds of verbose info.
Note that +debug=p
puts the encrypted message on stdout.
This may be useful for constructing reply blocks, among other things.
If there are problems with premail, then one of the best ways to
track them down is through the log. Try setting the debug
configuration option to chvl
, setting the logfile
configuration option (for example, to ~/.premail/log
), and
then examining the log. Also, if you're bringing bugs to my attention,
it helps a lot if you can send me relevant excerpts from the log.