Debugging If unexpected things go wrong, it's not terribly easy to get information from Trestlemail. Daemons lead a very non-interactive life. If the catastrophe address is set up properly, trestlemail tries its best to send errors as E-mail messages. If it does exist, the error is appended to the log, but the E-mail message is not sent. All Perl and Trestlemail stdout and stderr appear in the fetchmail log.
Development is actually pretty straightforward.
You'll notice some debugging remnants throughout the trestlemail script.