Previous Next Table of Contents

16. Debugging

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:

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.


Previous Next Table of Contents