Hi, In mimedefang-filter, filter_end() has one line to generate spam report, and the report shows okay if it is an attachment with spam. However, I move it to its message header section, like: action_change_header( "X-Spam-Report", "$report\n" ); The newlines do not work, everything goes into one line. Any suggestion? Thank you very much. ming