https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7253
--- Comment #5 from Mark Martinec <[email protected]> --- Created attachment 5332 --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5332&action=edit proposed patch - encoded-words must not cross line boundaries - encoded-words must not contain non-encoded whitespace - choose between Q and B encoding based on shorter encoded length (and rename sub qp_encode_header to mime_encode_header) - change a call to MIME::Base64::encode_base64 in oder to prevent it from inserting a newline in the middle of a longish encoded-word, add a test for this - adjust t/prefs_include.t and t/reportheader_8bit.t to cope with this fix - enhanced the test t/header_utf8.t trunk: Sending lib/Mail/SpamAssassin/PerMsgStatus.pm Sending lib/Mail/SpamAssassin/Util.pm Sending t/header_utf8.t Sending t/prefs_include.t Sending t/reportheader_8bit.t Committed revision 1708863. Btw, the mime_encode_header() is still not perfect, as it is incapable of breaking long encoded-words if line length exceeds 75 characters. Still, it is a major improvement over what we had and over what Encode::MIME::Header would offer. -- You are receiving this mail because: You are the assignee for the bug.
