*** Deliver.class.php.orig Mon Apr 28 11:18:58 2008 --- Deliver.class.php Sun Apr 12 17:11:32 2009 *************** *** 488,494 **** --- 488,499 ---- $cnt = count($header); $hdr_s = ''; for ($i = 0 ; $i < $cnt ; $i++) { + // do not fold a line if it contains some name field. e.g. 'filename', 'name' + if (strstr($header[$i], 'name') === false) { $hdr_s .= $this->foldLine($header[$i], 78,str_pad('',4)); + } else { + $hdr_s .= $header[$i]; + } } $header = $hdr_s; $header .= $rn; /* One blank line to separate mimeheader and body-entity */ *************** *** 719,724 **** --- 724,730 ---- case 'Cc': case 'Bcc': case 'From': + case 'Subject': $hdr_s .= $header[$i]; break; default: $hdr_s .= $this->foldLine($header[$i], 78, str_pad('',4)); break;