X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fread_body.php;h=c987954b7c397e56d4d5ae6294b4991268ac86ea;hb=849bdf42ed7bd7cca68909d2b46869742dfd210e;hp=8fb431011eefa1a8b91060f766d4bd86349c1a6a;hpb=f7b1b3b1779c3665bc943b2dec65182e8c536e69;p=squirrelmail.git diff --git a/src/read_body.php b/src/read_body.php index 8fb43101..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)); @@ -326,7 +361,7 @@ echo _("Delete") . ' '; if (($mailbox == $draft_folder) && ($save_as_draft)) { echo '| '; - echo " "; + echo " "; echo _("Resume Draft") . ''; } echo '  ' . @@ -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 '' . ' ' .