From e9f8ea4ecb40efdb6f19631f8359ebd1fbf588be Mon Sep 17 00:00:00 2001 From: lkehresman Date: Mon, 10 Jul 2000 09:22:44 +0000 Subject: [PATCH] - fixed bugs in sorting by from and subject - After login, you go to INBOX, not the welcome screen - worked out some more bugs in conf.pl - subscribe/unsubscribe can select multiple folders at one time - made empty trash happen on left side so you stay where you are - standardized look and feel a little bit more - fixed problems with renaming of folders git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@605 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 4 +- README | 166 ++++++++++----------------------- TODO | 12 +-- config/conf.pl | 19 ++-- config/forest_theme.php | 4 +- functions/imap_general.php | 1 + functions/mailbox_display.php | 11 ++- functions/page_header.php | 2 +- functions/prefs.php | 3 - src/download.php | 10 +- src/empty_trash.php | 6 +- src/folders.php | 76 ++++++++------- src/folders_rename_do.php | 36 ------- src/folders_rename_getname.php | 2 +- src/folders_subscribe.php | 15 ++- src/left_main.php | 2 +- src/options.php | 14 +-- src/options_display.php | 3 +- src/options_folder.php | 3 +- src/options_highlight.php | 27 +++--- src/options_personal.php | 3 +- src/read_body.php | 9 +- src/right_main.php | 12 ++- 23 files changed, 191 insertions(+), 249 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2f028ac1..7f97f085 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ Version 0.5pre1 -- DEVELOPMENT ------------------------------ -- Removed a bunch of annoying "success" screens +- It is now possible to select multiple subscribes/unsubscribes +- Removed a bunch of annoying "success" screens, improved navigation - Better IMAP session handling - Redid the options section and split it into different parts - Added "view all headers" option when reading a message @@ -12,6 +13,7 @@ Version 0.5pre1 -- DEVELOPMENT - Added Polish translation from Lukasz Klimek + Version 0.4 -- May 15, 2000 --------------------------- - If subject is blank, displays "(no subject)" diff --git a/README b/README index 853f64b5..c894b819 100644 --- a/README +++ b/README @@ -1,116 +1,52 @@ -Last revised: December 26, 1999 - -Contents +SquirrelMail +http://www.squirrelmail.org + +Introduction: +------------- +SquirrelMail is a standards-based webmail package written in PHP4. It includes +built-in pure PHP support for the IMAP and SMTP protocols, and all pages render +in pure HTML 4.0 (with no Javascript) for maximum compatibility across +browsers. It has very few requirements and is very easy to configure and +install. SquirrelMail has a all the functionality you would want from an email +client, including strong MIME support, address books, and folder manipulation. + +Why did you guys create SquirrelMail? The need arose in our organization for +the access of email and address books from anywhere in the world. Obviously +a web interface is ideal for this, given that the user has access to the +Internet. After reviewing several open source projects, we realized that +we were going to need to do some fairly major customizations to get things +to be a nice fit for our needs. So the decision was made to create our +own for some of these reasons, and for fun (we really like PHP4). We +decided to open source the project to contribute to the community that has +contributed so much to us. Since then, it has grown much bigger than we ever +imagined, and we have an awesome development team who are actively working +on the project. + +We would love to hear from you! The nature of open source projects make it +hard to know who all is using your product. It is always nice when we get +emails from people just telling us that they're using SquirrelMail. If you +have a few minutes, please send us an email to let us know! You can send +it to our mailing list: squirrelmail-list@sourceforge.net + +Contact: -------- -General Information ................................................. 1.0 - About SquirrelMail ................................................ 1.1 - History ........................................................... 1.2 - Contact Information ............................................... 1.3 - -Installation ........................................................ 2.0 - -Liscensing .......................................................... 3.0 - -FAQ ................................................................. 4.0 - Can SquirrelMail run with PHP3? ................................... 4.1 - Why PHP4 when it's only in BETA? .................................. 4.2 - Where did you get the name "SquirrelMail?" ........................ 4.3 - Is SquirrelMail stable enough to actually use? .................... 4.4 - - - - - --- Section 1.0 -- - General Information - ---------------------------------------------------------------------- - 1.1 - About SquirrelMail - - So what exactly is SquirrelMail? It's a web interface to email that's - written in PHP4. It was designed to allow email access through your - server from anywhere in the world via the Web. - - - - 1.2 - History - - The need arose in our organization for the access of email and address - books from anywhere in the world. Obviously a web interface is ideal - for this, given that the user has access to the Internet. After - reviewing several open source projects we realized that we were going - to need to do some fairly major customizations to get things to be a - nice fit for our needs. So the decision was made to create our own for - some of these reasons, and for fun (we really like PHP4). We decided - to open source the project to contribute to the community that has - contributed so much to us. - - - - 1.3 - Contact Information - - If you need to contact the developers of SquirrelMail for some reason, - please email the mailing list. Bug reports and ideas should be sent - to the mailing list also. - - Mailing List: squirrelmail-list@sourceforge.net - - If for some reason, you need to contact us directly, you can also - email us at: - - Luke Ehresman: luke@usa.om.org - Nathan Ehresman: nathan@usa.om.org - - Web Page: squirrelmail.sourceforge.net - - --- Section 2.0 -- - Installation - ---------------------------------------------------------------------- - - Please view the INSTALL document that was included in this package. - - - - - --- Section 3.0 -- - Liscensing - ---------------------------------------------------------------------- - - This product is distributed under the GPL liscense. Please read - COPYING for more information. - - - - - --- Section 4.0 -- - Frequently Asked Questions - ---------------------------------------------------------------------- - Q: Can SquirrelMail be run with PHP3? - - Yes, and No. It is fully developed under PHP4 BETA3, however PHP is - pretty good about backwards compatability. Theoretically, it - shouldn't be too hard to port it to PHP3, but you definately would - have to do some code tweaking. Let us know of any success or horror - stories if you attempt it. - - Q: Why PHP4 when it's only in BETA? - - PHP4 is significantly faster than PHP3. When we were viewing - mailboxes with 500-1000 messages in them, it would take about 15-30 - seconds to sort them. With PHP4, that time has been cut down to 5-10 - seconds for large boxes. - - Q: Where did you get the name, "SquirrelMail"? - - It's derived from the over-abundant squirrel population in Georgia - this year. We were playing volleyball one day, and saw a squirrel - try to jump between trees. He failed miserably and fell 40 feet to - the ground. So, we had squirrels on our mind the next day when we - were coming up with a name. - - Q: Is SquirrelMail stable enough to actually use? - SquirrelMail is stable, however, many of the features that are - usually desired from an email client have not yet been implemented. - +It is pretty easy to get in contact with the developers if you need help or +if you find bugs that need to be reported. The best way to contact us would +be through our mailing list which is actively monitored. Just send an +email to: + + squirrelmail-list@sourceforge.net + +If you wish to actually subscribe to our mailing list, please visit our web +page for instructions (http://www.squirrelmail.org) and go to the section +titled "Mailing List". + +Installation: +------------- + For detailed instructions on how to install SquirrelMail on your server, + please refer to the INSTALL document in the same directory as this document. + +Licensing: +---------- + This product is distributed under the GPL. Please read through the file + COPYING for more information about our license. diff --git a/TODO b/TODO index 9896e33c..2a73eec4 100644 --- a/TODO +++ b/TODO @@ -8,14 +8,9 @@ initials = taken by that person - Filters - Better inline HTML support including graphics (content-disposition) - Foreground themes - - Configurable so that after login, you go directly to INBOX -(glp) When deleting or moving messages (empty trash too), go back to the - list for the mail box you were looking at without having to click - a link (mcp) Spell checking (ssg) Search mailbox(es) for given criteria - Remove subject and body requirements in Compose - - Select multiple Unsubscribe/Subscribe folders at one time - decodeHeader on to_ary, cc_ary, and filename - Decode folder names for non-standard characters @@ -39,4 +34,9 @@ Finished: (lme) (18.6.00) Fix conf.pl script and add more error checking so it doesn't throw parse errors (lme) (21.6.00) Rewrite of mime.php (see Gustav before any work is done) (lrb) (30.6.00) CSV import for address book. -(pl) (5.7.00) Insert In-Reply-To and References headers when replying to a message. +(pl) (05.7.00) Insert In-Reply-To and References headers when replying to a message. +(lme) (09.7.00) When deleting or moving messages (empty trash too), go back to the + list for the mail box you were looking at without having to click + a link +(lme) (09.7.00) Select multiple Unsubscribe/Subscribe folders at one time +(lme) (09.7.00) Configurable so that after login, you go directly to INBOX diff --git a/config/conf.pl b/config/conf.pl index 6f917872..3066133c 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -31,12 +31,16 @@ while ($line = ) { $line =~ s/^\s+\$//; $var = $line; + $var =~ s/=/EQUALS/; if ($var =~ /^([a-z]|[A-Z])/) { - @options = split(/\s*=\s*/, $var); + @options = split(/\s*EQUALS\s*/, $var); $options[1] =~ s/[\n|\r]//g; - $options[1] =~ s/^"//g; - $options[1] =~ s/;\s*$//g; - $options[1] =~ s/"$//g; + $options[1] =~ s/\";$//; + $options[1] =~ s/;$//; + $options[1] =~ s/^"//; +# if (/"$/) { +# $options[1] =~ s/"$//; +# } if ($options[0] =~ /^theme\[[0-9]+\]\["PATH"\]/) { $sub = $options[0]; @@ -463,6 +467,7 @@ sub command71 { print "every time a user logs on. You can use HTML or just plain\n"; print "text.\n\n(Type @ on a blank line to exit)\n"; + $new_motd = ""; do { print "] "; $line = ; @@ -471,7 +476,7 @@ sub command71 { $line =~ s/ /\ \ /g; $line =~ s/\t/\ \ \ \ /g; $line =~ s/$/ /; - $line =~ s/"/\"/g; + $line =~ s/\"/\\\"/g; $new_motd = $new_motd . $line; } @@ -1212,7 +1217,7 @@ sub set_defaults { print "\n"; print "Please note that you will still need to go through and make sure\n"; print "everything is correct. This does not change everything. There are\n"; - print "only a few settings that thils will change.\n"; + print "only a few settings that this will change.\n"; print "\n"; $continue = 0; @@ -1240,7 +1245,7 @@ sub set_defaults { print " default_folder_prefix = INBOX\n"; print " trash_folder = INBOX.Trash\n"; print " sent_folder = INBOX.Sent\n"; - print " show_prefix_optin = false\n"; + print " show_prefix_option = false\n"; print " default_sub_of_inbox = true\n"; print "show_contain_subfolders_option = false\n"; print " imap_server_type = cyrus\n"; diff --git a/config/forest_theme.php b/config/forest_theme.php index b5ec89d2..53f91ed7 100644 --- a/config/forest_theme.php +++ b/config/forest_theme.php @@ -13,9 +13,9 @@ $color[4] = "#DEFFE7"; // (light purple) Normal Background $color[5] = "#B6D7BF"; // (darker gray) Table Headers $color[6] = "#DDFFDD"; // (black) Text on left bar - $color[7] = "#3C7F50"; // (light purple) Links + $color[7] = "#1C5F30"; // (light purple) Links $color[8] = "#000000"; // (black) Normal text - $color[9] = "#7E9F87"; // (mid purp) Darker version of #0 + $color[9] = "#88a990"; // (mid purp) Darker version of #0 $color[10] = "#5E7F67"; // (dark purp) Darker version of #9 $color[11] = "#4A9B62"; // (dark red) Special Folders color ?> diff --git a/functions/imap_general.php b/functions/imap_general.php index 9e13d850..133e9851 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -24,6 +24,7 @@ // echo "$read
"; $counter++; } +// echo "--
"; if (substr($read, 0, strlen("$pre OK")) == "$pre OK") { $response = "OK"; $message = trim(substr($read, strlen("$pre OK"), strlen($read))); diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index d1589cd5..2b331a37 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -87,10 +87,17 @@ $messages[$j]["DATE_STRING"] = getDateString($messages[$j]["TIME_STAMP"]); $messages[$j]["ID"] = $j+1; $messages[$j]["FROM"] = decodeHeader($from[$j]); + $messages[$j]["FROM-SORT"] = strtolower(sqimap_find_displayable_name(decodeHeader($from[$j]))); $messages[$j]["SUBJECT"] = decodeHeader($subject[$j]); + $messages[$j]["SUBJECT-SORT"] = strtolower(decodeHeader($subject[$j])); $messages[$j]["TO"] = decodeHeader($to[$j]); $messages[$j]["PRIORITY"] = $priority[$j]; $messages[$j]["CC"] = $cc[$j]; + + # fix SUBJECT-SORT to remove Re: + if (substr($messages[$j]["SUBJECT-SORT"], 0, 3) == "re:" || + substr($messages[$j]["SUBJECT-SORT"], 0, 3) == "aw:") + $messages[$j]["SUBJECT-SORT"] = trim(substr($messages[$j]["SUBJECT-SORT"], 3)); $num = 0; while ($num < count($flags[$j])) { @@ -138,9 +145,9 @@ if (($sort == 0) || ($sort == 1)) $msort = array_cleave ($msgs, "TIME_STAMP"); if (($sort == 2) || ($sort == 3)) - $msort = array_cleave ($msgs, "FROM"); + $msort = array_cleave ($msgs, "FROM-SORT"); if (($sort == 4) || ($sort == 5)) - $msort = array_cleave ($msgs, "SUBJECT"); + $msort = array_cleave ($msgs, "SUBJECT-SORT"); if(($sort % 2) == 1) { asort($msort); diff --git a/functions/page_header.php b/functions/page_header.php index c3a95f49..aaf5abb6 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -103,7 +103,7 @@ do_hook("menuline"); echo " \n"; - echo " SquirrelMail\n"; + echo " SquirrelMail\n"; echo " \n"; echo " \n"; echo "\n\n"; diff --git a/functions/prefs.php b/functions/prefs.php index b0a88941..e43d1807 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -141,9 +141,6 @@ $sig .= fgets($file, 1024); } fclose($file); - } else { - echo _("Signature file not found."); - exit; } return $sig; } diff --git a/src/download.php b/src/download.php index 9d6d25e5..f5b2ac46 100644 --- a/src/download.php +++ b/src/download.php @@ -66,7 +66,15 @@ $filename = $header->filename; if (strlen($filename) < 1) { - $filename = "untitled$passed_ent_id.$type1"; + # set some standard suffixes to the filenames if the filename isn't known + + if ($type1 == "plain" && $type0 == "text") $suffix = "txt"; + else if ($type1 == "richtext" && $type0 == "text") $suffix = "rtf"; + else if ($type1 == "postscript" && $type0 == "application") $suffix = "ps"; + else if ($type1 == "message" && $type0 == "rfc822") $suffix = "msg"; + else $suffix = $type1; + + $filename = "untitled$passed_ent_id.$suffix"; } // Note: diff --git a/src/empty_trash.php b/src/empty_trash.php index 91d88d81..aa3eb97e 100644 --- a/src/empty_trash.php +++ b/src/empty_trash.php @@ -56,8 +56,8 @@ // now lets go through the tree and delete the folders walkTreeInPreOrderEmptyTrash(0, $imap_stream, $foldersTree); - sqimap_mailbox_select($imap_stream, $trash_folder, $numMessages); - displayPageHeader($color, $mailbox); - messages_deleted_message($trash_folder, $sort, $startMessage, $color); + $location = get_location(); + header ("Location: $location/left_main.php"); + sqimap_logout($imap_stream); ?> diff --git a/src/folders.php b/src/folders.php index f4366b47..4be23786 100644 --- a/src/folders.php +++ b/src/folders.php @@ -29,14 +29,14 @@ echo "
"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; + echo "
\n"; echo _("Folders"); - echo "
\n"; if ($success) { echo "\n"; - echo " \n"; echo "
\n"; + echo "
\n"; if ($success == "subscribe") { echo "" . _("Subscribed successfully!") . "
"; } else if ($success == "unsubscribe") { @@ -48,7 +48,7 @@ } else if ($success == "rename") { echo "" . _("Renamed successfully!") . "
"; } - echo "" . _("refresh folder list") . ""; + echo " " . _("refresh folder list") . ""; echo "

\n"; } @@ -99,9 +99,9 @@ /** DELETING FOLDERS **/ echo "\n"; - echo ""; + echo ""; echo "\n"; /** CREATING FOLDERS **/ - echo ""; + echo ""; echo "\n"; /** RENAMING FOLDERS **/ - echo ""; + echo ""; echo "\n"; + echo "
"; + echo "
"; echo _("Delete Folder"); - echo "
"; $count_special_folders = 0; @@ -146,9 +146,9 @@ echo "
 
"; + echo "
"; echo _("Create Folder"); - echo "
"; echo "
\n"; echo "
\n"; @@ -199,9 +199,9 @@ echo "
 
"; + echo "
"; echo _("Rename a Folder"); - echo "
"; if ($count_special_folders < count($boxes)) { echo "\n"; @@ -228,16 +228,17 @@ } $boxes_sub = $boxes; - echo "
 
 
\n"; /** UNSUBSCRIBE FOLDERS **/ - echo ""; + echo "\n"; + echo ""; - echo ""; + echo "\n"; + echo "\n"; } else { - echo _("No mailboxes found") . "

"; + echo _("No folders were found to unsubscribe from!") . ""; } $boxes_sub = $boxes; + + echo ""; /** SUBSCRIBE TO FOLDERS **/ - echo "
"; echo _("Unsubscribe/Subscribe"); - echo "
"; + echo "
"; if ($count_special_folders < count($boxes)) { echo "\n"; - echo "\n"; for ($i = 0; $i < count($boxes); $i++) { $use_folder = true; if ((strtolower($boxes[$i]["unformatted"]) != "inbox") && @@ -249,25 +250,26 @@ echo " \n"; + echo "
\n"; echo "\n"; - echo "
 
"; - if ($count_special_folders <= count($boxes)) { - $imap_stream = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 1); - $boxes_all = sqimap_mailbox_list_all ($imap_stream); - - echo "
\n"; - echo "
"; + $imap_stream = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 1); + $boxes_all = sqimap_mailbox_list_all ($imap_stream); + + $box = ""; + $box2 = ""; + for ($i = 0, $q = 0; $i < count($boxes_all); $i++) { $use_folder = true; for ($p = 0; $p < count ($boxes); $p++) { if ($boxes_all[$i]["unformatted"] == $boxes[$p]["unformatted"]) { @@ -278,19 +280,25 @@ } } if ($use_folder == true) { - $box = $boxes_all[$i]["unformatted-dm"]; - $box2 = replace_spaces($boxes_all[$i]["formatted"]); - echo "

\n"; } else { - echo _("No mailboxes found") . "

"; + echo _("No folders were found to subscribe to!") . ""; } sqimap_logout($imapConnection); diff --git a/src/folders_rename_do.php b/src/folders_rename_do.php index f6108e11..fe29b9aa 100644 --- a/src/folders_rename_do.php +++ b/src/folders_rename_do.php @@ -19,48 +19,12 @@ include("../functions/page_header.php"); if (!isset($imap_php)) include("../functions/imap.php"); - if (!isset($display_messages_php)) - include("../functions/display_messages.php"); include("../src/load_prefs.php"); $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $dm = sqimap_get_delimiter($imapConnection); - if ($method == "sub") { - $mailbox = trim($mailbox); - sqimap_subscribe ($imapConnection, $mailbox); - } else { - sqimap_unsubscribe ($imapConnection, $mailbox); - } - - displayPageHeader($color, "None"); - echo "


"; - if ($method == "sub") { - echo _("Subscribed Successfully!"); - echo "

"; - echo _("You have been successfully subscribed."); - } else { - echo _("Unsubscribed Successfully!"); - echo "


"; - echo _("You have been successfully unsubscribed."); - } - echo "
"; - session_start(); - - if (!isset($config_php)) - include("../config/config.php"); - if (!isset($strings_php)) - include("../functions/strings.php"); - if (!isset($page_header_php)) - include("../functions/page_header.php"); - if (!isset($imap_php)) - include("../functions/imap.php"); - - include("../src/load_prefs.php"); - - $dm = sqimap_get_delimiter($imapConnection); - if (strpos($orig, $dm)) $old_dir = substr($orig, 0, strrpos($orig, $dm)); else diff --git a/src/folders_rename_getname.php b/src/folders_rename_getname.php index 58fad366..f16f0573 100644 --- a/src/folders_rename_getname.php +++ b/src/folders_rename_getname.php @@ -41,7 +41,7 @@ $old_name = stripslashes($old_name); displayPageHeader($color, "None"); - echo ""; + echo "
"; echo ""; diff --git a/src/folders_subscribe.php b/src/folders_subscribe.php index 42325261..ef8c9847 100644 --- a/src/folders_subscribe.php +++ b/src/folders_subscribe.php @@ -29,12 +29,17 @@ $location = get_location(); if ($method == "sub") { - $mailbox = trim($mailbox); - sqimap_subscribe ($imapConnection, $mailbox); - header("Location: $location/folders.php?success=subscribe"); + for ($i=0; $i < count($mailbox); $i++) { + $mailbox[$i] = trim($mailbox[$i]); + sqimap_subscribe ($imapConnection, $mailbox[$i]); + header("Location: $location/folders.php?success=subscribe"); + } } else { - sqimap_unsubscribe ($imapConnection, $mailbox); - header("Location: $location/folders.php?success=unsubscribe"); + for ($i=0; $i < count($mailbox); $i++) { + $mailbox[$i] = trim($mailbox[$i]); + sqimap_unsubscribe ($imapConnection, $mailbox[$i]); + header("Location: $location/folders.php?success=unsubscribe"); + } } sqimap_logout($imapConnection); diff --git a/src/left_main.php b/src/left_main.php index 4a435097..d4224a3a 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -72,7 +72,7 @@ if (($move_to_trash == true) && ($real_box == $trash_folder)) { $urlMailbox = urlencode($real_box); $line .= "\n\n"; - $line .= "     ("._("purge").")"; + $line .= "     ("._("purge").")"; $line .= "\n\n"; } $line .= ""; diff --git a/src/options.php b/src/options.php index bf323166..c099cb8c 100644 --- a/src/options.php +++ b/src/options.php @@ -39,11 +39,11 @@ is_logged_in(); ?> -
"; echo _("Rename a folder"); echo "
+
+
-
"._("Successfully saved personal information!")."

"; + echo "
"._("Successfully saved personal information!")."

"; } else if ($submit_display) { # Save display preferences setPref($data_dir, $username, "chosen_theme", $chosentheme); @@ -66,7 +66,7 @@ setPref($data_dir, $username, "left_size", $leftsize); setPref($data_dir, $username, "use_javascript_addr_book", $javascript_abook); - echo "
"._("Successfully saved display preferences!")."
"; + echo "
"._("Successfully saved display preferences!")."
"; echo ""._("Refresh Page")."

"; } else if ($submit_folder) { # Save folder preferences @@ -85,7 +85,7 @@ setPref($data_dir, $username, "sent_folder", ""); } setPref($data_dir, $username, "folder_prefix", $folderprefix); - echo "
"._("Successfully saved folder preferences!")."
"; + echo "
"._("Successfully saved folder preferences!")."
"; echo ""._("Refresh Folders")."

"; } ?> @@ -93,7 +93,7 @@ - -
+
@@ -119,7 +119,7 @@

+
diff --git a/src/options_display.php b/src/options_display.php index ea49ee61..6e990414 100644 --- a/src/options_display.php +++ b/src/options_display.php @@ -30,7 +30,8 @@ displayPageHeader($color, "None"); $chosen_language = getPref($data_dir, $username, "language"); ?> -
+
+
diff --git a/src/options_folder.php b/src/options_folder.php index 306f9148..7beab5fa 100644 --- a/src/options_folder.php +++ b/src/options_folder.php @@ -33,7 +33,8 @@ $boxes = sqimap_mailbox_list($imapConnection, $boxes); sqimap_logout($imapConnection); ?> -
+
+
diff --git a/src/options_highlight.php b/src/options_highlight.php index 44060331..491dbe99 100644 --- a/src/options_highlight.php +++ b/src/options_highlight.php @@ -48,7 +48,8 @@ include("../src/load_prefs.php"); displayPageHeader($color, "None"); ?> -
+
+
@@ -108,20 +109,20 @@ echo "
\n"; echo "\n"; echo "\n"; - echo "\n"; - echo " \n"; - echo "
\n"; + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; echo _("Identifying name") . ":"; - echo " \n"; echo " "; echo "


\n"; + echo "
 
\n"; echo _("Color") . ":"; - echo " \n"; echo "  


\n"; + echo "
 
\n"; echo _("Match") . ":"; - echo " \n"; echo "
+
+
diff --git a/src/read_body.php b/src/read_body.php index 964f79d5..7a61361b 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -34,11 +34,12 @@ $read = sqimap_read_data ($imapConnection, "a003", true, $a, $b); echo "
"; - echo "\n"; + echo "
\n"; echo " \n"; - echo "
" . _("Viewing full header") . " - "; echo ""; - echo ""._("View message") . "
";
+      echo ""._("View message") . "
\n"; + echo "\n"; + echo "
";
       for ($i=1; $i < count($read)-1; $i++) {
          $read[$i] = htmlspecialchars($read[$i]);
          if (substr($read[$i], 0, 1) != "\t" && 
@@ -50,7 +51,7 @@
          }
          echo "$read[$i]";
       }
-      echo "
\n"; + echo "
\n"; echo ""; exit; } diff --git a/src/right_main.php b/src/right_main.php index 2008ee58..619aa938 100644 --- a/src/right_main.php +++ b/src/right_main.php @@ -66,10 +66,14 @@ // If the page has been loaded without a specific mailbox, // just show a page of general info. if (!isset($mailbox)) { - displayPageHeader($color, "None"); - general_info($motd, $org_logo, $version, $org_name, $color); - echo ""; - exit; + $mailbox = "INBOX"; + $sort = $newsort = 0; + $startMessage = 1; + +// displayPageHeader($color, "None"); +// general_info($motd, $org_logo, $version, $org_name, $color); +// echo ""; +// exit; } sqimap_mailbox_select($imapConnection, $mailbox); -- 2.25.1