Otherwise KMail seems to dump hundreds of lines of the formatted HTML message to the debug log, every time a message is displayed.