X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=c987954b7c397e56d4d5ae6294b4991268ac86ea;hb=849bdf42ed7bd7cca68909d2b46869742dfd210e;hp=a47817b16e5d4456ae294f6c30571deb2300a78a;hpb=0eed445e0a295a77a5893996cfcee3239b3b7a57;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index a47817b1..c987954b 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -299,6 +299,41 @@ } } } + /** FORMAT THE BCC STRING **/ + $i = 0; + if (isset ($message->header->bcc[0]) && trim($message->header->bcc[0])){ + $bcc_string = ""; + $bcc_ary = $message->header->bcc; + while ($i < count(decodeHeader($bcc_ary))) { + $bcc_ary[$i] = htmlspecialchars($bcc_ary[$i]); + if ($bcc_string) + $bcc_string = "$bcc_string
$bcc_ary[$i]"; + else + $bcc_string = "$bcc_ary[$i]"; + + $i++; + if (count($bcc_ary) > 1) { + if ($show_more_cc == false) { + if ($i == 1) { + if (isset($where) && isset($what)) { + // from a search + $bcc_string = "$bcc_string ($echo_more)"; + } else { + $bcc_string = "$bcc_string ($echo_more)"; + } + $i = count($bcc_ary); + } + } else if ($i == 1) { + if (isset($where) && isset($what)) { + // from a search + $bcc_string = "$bcc_string ($echo_less)"; + } else { + $bcc_string = "$bcc_string ($echo_less)"; + } + } + } + } + } /** make sure everything will display in HTML format **/ $from_name = decodeHeader(htmlspecialchars($message->header->from)); $subject = decodeHeader(htmlspecialchars($message->header->subject)); @@ -421,6 +456,16 @@ ' ' . "\n" . ' ' . "\n"; } + /** bcc **/ + if (isset($bcc_string)) { + echo " \n" . + " \n" . + ' Bcc:' . "\n" . + " \n" . + " $bcc_string \n" . + ' ' . "\n" . + ' ' . "\n"; + } do_hook("read_body_header"); echo '' . ' ' .