From 215de78cdf8c24c5400cc006730b106524dd04a9 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 30 Jan 2004 19:14:06 +0000 Subject: [PATCH] rollback, no time to find out what's wrong, postponed to after the release git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6467 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/deliver/Deliver.class.php | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/class/deliver/Deliver.class.php b/class/deliver/Deliver.class.php index 059c6f52..2b5df581 100644 --- a/class/deliver/Deliver.class.php +++ b/class/deliver/Deliver.class.php @@ -409,26 +409,26 @@ class Deliver { } $header[] = "Date: $date" . $rn; $header[] = 'Subject: '.encodeHeader($rfc822_header->subject) . $rn; - $header[] = 'From: '. $rfc822_header->getAddr_s('from',", \r\n",true) . $rn; + $header[] = 'From: '. $rfc822_header->getAddr_s('from',',',true) . $rn; /* RFC2822 if from contains more then 1 address */ if (count($rfc822_header->from) > 1) { - $header[] = 'Sender: '. $rfc822_header->getAddr_s('sender',", \r\n",true) . $rn; + $header[] = 'Sender: '. $rfc822_header->getAddr_s('sender',',',true) . $rn; } if (count($rfc822_header->to)) { - $header[] = 'To: '. $rfc822_header->getAddr_s('to',", \r\n",true) . $rn; + $header[] = 'To: '. $rfc822_header->getAddr_s('to',',',true) . $rn; } if (count($rfc822_header->cc)) { - $header[] = 'Cc: '. $rfc822_header->getAddr_s('cc',", \r\n",true) . $rn; + $header[] = 'Cc: '. $rfc822_header->getAddr_s('cc',',',true) . $rn; } if (count($rfc822_header->reply_to)) { - $header[] = 'Reply-To: '. $rfc822_header->getAddr_s('reply_to',", \r\n",true) . $rn; + $header[] = 'Reply-To: '. $rfc822_header->getAddr_s('reply_to',',',true) . $rn; } /* Sendmail should return true. Default = false */ $bcc = $this->getBcc(); if (count($rfc822_header->bcc)) { - $s = 'Bcc: '. $rfc822_header->getAddr_s('bcc',", \r\n",true) . $rn; + $s = 'Bcc: '. $rfc822_header->getAddr_s('bcc',',',true) . $rn; if (!$bcc) { - // $s = $this->foldLine($s, 78, str_pad('',4)); + $s = $this->foldLine($s, 78, str_pad('',4)); $raw_length += strlen($s); } else { $header[] = $s; @@ -485,12 +485,6 @@ class Deliver { { case 'Message-ID': case 'In-Reply_To': - case 'To': - case 'Cc': - case 'Bcc': - case 'From': - case 'Sender': - case 'Reply-To': $hdr_s .= $header[$i]; break; case 'References': -- 2.25.1