From: stekkel Date: Mon, 24 Feb 2003 18:36:02 +0000 (+0000) Subject: removed encodeHeader calls for the complete addresses, Only the personal X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a1386fbfcfe114e7c140f99def4f5144ae38b2fb;p=squirrelmail.git removed encodeHeader calls for the complete addresses, Only the personal name part of an email address should be encoded git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4539 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/deliver/Deliver.class.php b/class/deliver/Deliver.class.php index ede36217..8b9ae88e 100644 --- a/class/deliver/Deliver.class.php +++ b/class/deliver/Deliver.class.php @@ -273,24 +273,24 @@ class Deliver { } $header[] = "Date: $date" . $rn; $header[] = 'Subject: '.encodeHeader($rfc822_header->subject) . $rn; - $header[] = 'From: '. encodeHeader($rfc822_header->getAddr_s('from')) . $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: '. encodeHeader($rfc822_header->getAddr_s('sender')) . $rn; + $header[] = 'Sender: '. $rfc822_header->getAddr_s('sender',',',true) . $rn; } if (count($rfc822_header->to)) { - $header[] = 'To: '. encodeHeader($rfc822_header->getAddr_s('to')) . $rn; + $header[] = 'To: '. $rfc822_header->getAddr_s('to',',',true) . $rn; } if (count($rfc822_header->cc)) { - $header[] = 'Cc: '. encodeHeader($rfc822_header->getAddr_s('cc')) . $rn; + $header[] = 'Cc: '. $rfc822_header->getAddr_s('cc',',',true) . $rn; } if (count($rfc822_header->reply_to)) { - $header[] = 'Reply-To: '. encodeHeader($rfc822_header->getAddr_s('reply_to')) . $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: '. encodeHeader($rfc822_header->getAddr_s('bcc')) . $rn; + $s = 'Bcc: '. $rfc822_header->getAddr_s('bcc',',',true) . $rn; if (!$bcc) { $s = $this->foldLine($s, 78, str_pad('',4)); $raw_length += strlen($s);