2007-07-23
andim
This function messes up text mails as well as html_mails (with the enhanced html_mail addon).
It sometimes seems to add "=" signs after somehow 70 characters. I've managed to fix this commenting the following lines, but this issue proabably needs a review:
// finally split into softlines no longer than $maxlen chars,
// for even more safeness one could encode x09,x20
// at the very first character of the line
// and after soft linebreaks, as well,
// but this wouldn't be caught by such an easy RegExp
//if($maxlen){
// preg_match_all( '/.{1,'.($maxlen - 2).'}([^=]{0,2})?/', $sLine, $aMatch );
// $sLine = implode( '=' . MAILHEADER_EOL, $aMatch[0] ); // add soft crlf's
//}