Message printing fixes

lots of formatting problems, especially around attachments.