X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fread_body.php;h=421a44896c7ac8dc0f9bd70207d10f3472fa1fdf;hp=1b12317106958f3243b513a5c28334c3454ec4f9;hb=020abcf38274494558650035430a4be32e01d6e6;hpb=f2ac56aff94eaf0e985e6fcfe182a38f96bec4e5
diff --git a/src/read_body.php b/src/read_body.php
index 1b123171..421a4489 100644
--- a/src/read_body.php
+++ b/src/read_body.php
@@ -299,6 +299,52 @@
}
}
}
+ /** 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)";
+ }
+ }
+ }
+ }
+ }
+
+ if($default_use_priority) {
+ switch(substr($message->header->priority,0,1)) {
+ case "1" : $priority_string = _("High");
+ break;
+ case "3" : $priority_string = _("Normal");
+ break;
+ case "5" : $priority_string = _("Low");
+ break;
+ }
+ }
/** make sure everything will display in HTML format **/
$from_name = decodeHeader(htmlspecialchars($message->header->from));
$subject = decodeHeader(htmlspecialchars($message->header->subject));
@@ -306,11 +352,11 @@
do_hook('read_body_top');
echo '
' .
'
' . "\n" .
- ' ' .
- ' ' .
- ' ' .
- ' ' .
- ' ';
+ ' ' . "\n" .
+ ' ' . "\n" .
+ ' ' . "\n" .
+ ' ' . "\n" .
+ ' ' . "\n";
if ($where && $what) {
echo " ";
} else {
@@ -323,11 +369,17 @@
} else {
echo " ";
}
- echo _("Delete") .
- ' ' .
+ echo _("Delete") . ' ';
+ if (($mailbox == $draft_folder) && ($save_as_draft)) {
+ echo '| ';
+ echo " ";
+ echo _("Resume Draft") . '';
+ }
+ echo ' ' .
' ' .
' | ' .
' ' . "\n";
+
if ($where && $what) {
} else {
if ($currentArrayIndex == -1) {
@@ -415,6 +467,27 @@
' | ' . "\n" .
' ' . "\n";
}
+ /** bcc **/
+ if (isset($bcc_string)) {
+ echo " \n" .
+ " \n" .
+ ' Bcc:' . "\n" .
+ " | \n" .
+ " $bcc_string \n" .
+ ' | ' . "\n" .
+ ' ' . "\n";
+ }
+ if ($default_use_priority) {
+ if (isset($priority_string)) {
+ echo " \n" .
+ " \n" .
+ " "._("Priority").": \n".
+ " | \n" .
+ " $priority_string \n" .
+ " | " . "\n" .
+ " " . "\n";
+ }
+ }
do_hook("read_body_header");
echo ' ' .
' | ' .
@@ -435,4 +508,4 @@
do_hook('read_body_bottom');
do_hook('html_bottom');
sqimap_logout($imapConnection);
-?>
\ No newline at end of file
+?>
| |