From be8e07f81ffa23efa581d6b7d1445fa893ada408 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Thu, 27 Apr 2000 03:04:15 +0000 Subject: [PATCH] updated documentation, fixed bugs with displaying multiple addrs git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@465 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- BUG | 7 ++----- ChangeLog | 2 ++ INSTALL | 10 +++++++--- functions/imap_messages.php | 4 ++-- functions/mailbox_display.php | 7 +++++-- src/read_body.php | 1 + 6 files changed, 19 insertions(+), 12 deletions(-) diff --git a/BUG b/BUG index bfadfc8b..597604a0 100644 --- a/BUG +++ b/BUG @@ -1,12 +1,9 @@ Known BUGS to be fixed before 0.4pre1: - - When more than one line of CCs or TOs is there, it doesn't have +--SQUASHED-- +(lme) When more than one line of CCs or TOs is there, it doesn't have the (more) or (less) option that used to be there.. only displays the first line. - - Check about optomizing Delete.. it takes quite a while when deleting - a large number of messages. - ---SQUASHED-- (lme) When reading through 7 unread messages, every time I would read a message and click on "Message List" to go back, they would stay marked "unread". The caching was doing too good of a job. (: diff --git a/ChangeLog b/ChangeLog index b880ab62..cf2a4787 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Version 0.4pre1 -- Development ------------------------------ +- Fixed all bugs listed in BUG +- When inside the Sent folder, it displays "To" instead of "From" - Added ability to go to Next and Previous message while reading a message - Caching of the message headers in mailbox (much faster) - Added a preference that allows users to customize how many messages diff --git a/INSTALL b/INSTALL index 06af9642..e8abf30c 100644 --- a/INSTALL +++ b/INSTALL @@ -124,9 +124,13 @@ b. Setting up directories c. Setting up SquirrelMail - All configuration directives you need to worry about in SquirrelMail - is in the file config/config.php in you SquirrelMail directory. This - file is pretty well commented. + There are two ways to configure Squirrelmail. In the config/ directory, + there is a perl script called conf.pl that will aid you in the + configuration process. This is the most recommended way of handling + the config. + + You can also copy the config/config_default.php file to config.php + and edit that manually. 4. RUNNING SQUIRRELMAIL ----------------------- diff --git a/functions/imap_messages.php b/functions/imap_messages.php index cdd240a8..2241163e 100755 --- a/functions/imap_messages.php +++ b/functions/imap_messages.php @@ -247,7 +247,7 @@ $pos = 0; $header["CC"][$pos] = trim(substr($read[$i], 4)); $i++; - while ((substr($read[$i], 0, 1) == " ") && (trim($read[$i]) != "")) { + while (((substr($read[$i], 0, 1) == "\t") || (substr($read[$i], 0, 1) == " ")) && (trim($read[$i]) != "")) { $pos++; $header["CC"][$pos] = trim($read[$i]); $i++; @@ -258,7 +258,7 @@ $pos = 0; $header["TO"][$pos] = trim(substr($read[$i], 4)); $i++; - while ((substr($read[$i], 0, 1) == " ") && (trim($read[$i]) != "")){ + while (((substr($read[$i], 0, 1) == "\t") || (substr($read[$i], 0, 1) == " ")) && (trim($read[$i]) != "")) { $pos++; $header["TO"][$pos] = trim($read[$i]); $i++; diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index b36e00a9..3280c2ab 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -23,13 +23,14 @@ if ($msg["FLAG_FLAGGED"] == true) { $flag = ""; $flag_end = ""; } if ($msg["FLAG_SEEN"] == false) { $bold = ""; $bold_end = ""; } - if ($msg["FLAG_ANSWERED"] == true) { $ans = " [A]"; } if ($mailbox == $sent_folder) { $italic = ""; $italic_end = ""; } echo " \n"; echo " $italic$bold$flag$senderName$flag_end$bold_end$italic_end\n"; echo "
$bold$flag".$msg["DATE_STRING"]."$flag_end$bold_end
\n"; - echo " $bold$flag$subject$flag_end$ans$bold_end\n"; + if ($msg["FLAG_ANSWERED"] == true) echo " A"; + else echo "  "; + echo " $bold$flag$subject$flag_end$bold_end\n"; echo "\n"; } @@ -232,6 +233,7 @@ echo " \n"; else echo " \n"; + echo "  \n"; /** SUBJECT HEADER **/ echo " ". _("Subject") ."\n"; if ($sort == 4) @@ -240,6 +242,7 @@ echo " \n"; else echo " \n"; + echo ""; diff --git a/src/read_body.php b/src/read_body.php index 4143694c..01fc7db4 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -96,6 +96,7 @@ $to_ary = $message["HEADER"]["TO"]; while ($i < count($to_ary)) { $to_ary[$i] = htmlspecialchars($to_ary[$i]); + if ($to_string) $to_string = "$to_string
$to_ary[$i]"; else -- 2.25.1