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
- Added Polish translation from Lukasz Klimek <casa@LO.Pila.PL>
+
Version 0.4 -- May 15, 2000
---------------------------
- If subject is blank, displays "(no subject)"
-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.
- 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
(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
$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];
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 = <STDIN>;
$line =~ s/ /\ \ /g;
$line =~ s/\t/\ \ \ \ /g;
$line =~ s/$/ /;
- $line =~ s/"/\"/g;
+ $line =~ s/\"/\\\"/g;
$new_motd = $new_motd . $line;
}
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;
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";
$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
?>
// echo "<small><tt><font color=cc0000>$read</font></tt></small><br>";
$counter++;
}
+// echo "--<br>";
if (substr($read, 0, strlen("$pre OK")) == "$pre OK") {
$response = "OK";
$message = trim(substr($read, strlen("$pre OK"), strlen($read)));
$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])) {
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);
do_hook("menuline");
echo " </TD><TD ALIGN=right WIDTH=\"30%\">\n";
- echo " <A HREF=\"http://squirrelmail.sourceforge.net/index.php3?from=1\" TARGET=\"_top\">SquirrelMail</A>\n";
+ echo " <A HREF=\"http://www.squirrelmail.org/index.php3?from=1\" TARGET=\"_top\">SquirrelMail</A>\n";
echo " </TD>\n";
echo " </TR>\n";
echo "</TABLE>\n\n";
$sig .= fgets($file, 1024);
}
fclose($file);
- } else {
- echo _("Signature file not found.");
- exit;
}
return $sig;
}
$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:
// 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);
?>
echo "<br>";
echo "<TABLE WIDTH=95% COLS=1 ALIGN=CENTER>\n";
- echo " <TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER>\n";
+ echo " <TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER><b>\n";
echo _("Folders");
- echo " </TD></TR>\n";
+ echo " </b></TD></TR>\n";
echo "</TABLE>\n";
if ($success) {
echo "<table width=100% align=center cellpadding=3 cellspacing=0 border=0>\n";
- echo " <tr><td><center><font color=\"$color[1]\">\n";
+ echo " <tr><td><center>\n";
if ($success == "subscribe") {
echo "<b>" . _("Subscribed successfully!") . "</b><br>";
} else if ($success == "unsubscribe") {
} else if ($success == "rename") {
echo "<b>" . _("Renamed successfully!") . "</b><br>";
}
- echo "</font><a href=\"../src/left_main.php\" target=left><font color=\"$color[1]\">" . _("refresh folder list") . "</font></a>";
+ echo " <a href=\"../src/left_main.php\" target=left>" . _("refresh folder list") . "</a>";
echo " </center></td></tr>\n";
echo "</table><br>\n";
}
/** DELETING FOLDERS **/
echo "<TABLE WIDTH=70% COLS=1 ALIGN=CENTER cellpadding=2 cellspacing=0 border=0>\n";
- echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER>";
echo _("Delete Folder");
- echo "</B></TD></TR>";
+ echo "</TD></TR>";
echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
$count_special_folders = 0;
echo "<tr><td bgcolor=\"$color[4]\"> </td></tr>\n";
/** CREATING FOLDERS **/
- echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER>";
echo _("Create Folder");
- echo "</B></TD></TR>";
+ echo "</TD></TR>";
echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
echo "<FORM ACTION=\"folders_create.php\" METHOD=\"POST\">\n";
echo "<INPUT TYPE=TEXT SIZE=25 NAME=folder_name><BR>\n";
echo "<tr><td bgcolor=\"$color[4]\"> </td></tr>\n";
/** RENAMING FOLDERS **/
- echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER>";
echo _("Rename a Folder");
- echo "</B></TD></TR>";
+ echo "</TD></TR>";
echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
if ($count_special_folders < count($boxes)) {
echo "<FORM ACTION=\"folders_rename_getname.php\" METHOD=\"POST\">\n";
}
$boxes_sub = $boxes;
- echo "<tr><td bgcolor=\"$color[4]\"> </td></tr>\n";
+ echo "<tr><td bgcolor=\"$color[4]\"> </td></tr></table>\n";
/** UNSUBSCRIBE FOLDERS **/
- echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
+ echo "<TABLE WIDTH=70% COLS=1 ALIGN=CENTER cellpadding=2 cellspacing=0 border=0>\n";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER colspan=3>";
echo _("Unsubscribe/Subscribe");
- echo "</B></TD></TR>";
- echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
+ echo "</TD></TR>";
+ echo "<TR><TD BGCOLOR=\"$color[0]\" width=49% ALIGN=CENTER>";
if ($count_special_folders < count($boxes)) {
echo "<FORM ACTION=\"folders_subscribe.php?method=unsub\" METHOD=\"POST\">\n";
- echo "<TT><SELECT NAME=mailbox>\n";
+ echo "<TT><SELECT NAME=mailbox[] multiple size=8>\n";
for ($i = 0; $i < count($boxes); $i++) {
$use_folder = true;
if ((strtolower($boxes[$i]["unformatted"]) != "inbox") &&
echo " <OPTION VALUE=\"$box\">$box2\n";
}
}
- echo "</SELECT></TT>\n";
+ echo "</SELECT></TT><br>\n";
echo "<INPUT TYPE=SUBMIT VALUE=\"";
echo _("Unsubscribe");
echo "\">\n";
- echo "</FORM></TD></TR>\n";
+ echo "</FORM></TD>\n";
} else {
- echo _("No mailboxes found") . "<br><br></td></tr>";
+ echo _("No folders were found to unsubscribe from!") . "</td>";
}
$boxes_sub = $boxes;
+
+ echo "<td bgcolor=\"$color[9]\" width=2%> </td>";
/** SUBSCRIBE TO FOLDERS **/
- echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
- if ($count_special_folders <= count($boxes)) {
- $imap_stream = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 1);
- $boxes_all = sqimap_mailbox_list_all ($imap_stream);
-
- echo "<FORM ACTION=\"folders_subscribe.php?method=sub\" METHOD=\"POST\">\n";
- echo "<tt><select name=mailbox>";
- for ($i = 0; $i < count($boxes_all); $i++) {
+ echo "<TD BGCOLOR=\"$color[0]\" widtn=49% ALIGN=CENTER>";
+ $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"]) {
}
}
if ($use_folder == true) {
- $box = $boxes_all[$i]["unformatted-dm"];
- $box2 = replace_spaces($boxes_all[$i]["formatted"]);
- echo " <OPTION VALUE=\"$box\">$box2\n";
+ $box[$q] = $boxes_all[$i]["unformatted-dm"];
+ $box2[$q] = $boxes_all[$i]["formatted"];
+ $q++;
}
}
sqimap_logout($imap_stream);
- echo "</select></tt>";
- echo "<INPUT TYPE=SUBMIT VALUE=\"";
- echo _("Subscribe");
- echo "\">\n";
+
+ if ($box && $box2) {
+ echo "<FORM ACTION=\"folders_subscribe.php?method=sub\" METHOD=\"POST\">\n";
+ echo "<tt><select name=mailbox[] multiple size=8>";
+
+ for ($q = 0; $q < count($box); $q++) {
+ echo " <OPTION VALUE=\"$box[$q]\">".$box2[$q]."\n";
+ }
+ echo "</select></tt><br>";
+ echo "<INPUT TYPE=SUBMIT VALUE=\"". _("Subscribe") . "\">\n";
echo "</FORM></TD></TR></TABLE><BR>\n";
} else {
- echo _("No mailboxes found") . "<br><br></td></tr></table>";
+ echo _("No folders were found to subscribe to!") . "</td></tr></table>";
}
sqimap_logout($imapConnection);
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 "<BR><BR><BR><CENTER><B>";
- if ($method == "sub") {
- echo _("Subscribed Successfully!");
- echo "</B><BR><BR>";
- echo _("You have been successfully subscribed.");
- } else {
- echo _("Unsubscribed Successfully!");
- echo "</B><BR><BR>";
- echo _("You have been successfully unsubscribed.");
- }
- echo "<BR><A HREF=\"webmail.php?right_frame=folders.php\" TARGET=_top>";
- 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
$old_name = stripslashes($old_name);
displayPageHeader($color, "None");
- echo "<TABLE WIDTH=100% COLS=1>";
+ echo "<br><TABLE align=center border=0 WIDTH=95% COLS=1>";
echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER><B>";
echo _("Rename a folder");
echo "</B></TD></TR>";
$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);
if (($move_to_trash == true) && ($real_box == $trash_folder)) {
$urlMailbox = urlencode($real_box);
$line .= "\n<small>\n";
- $line .= " (<B><A HREF=\"empty_trash.php?numMessages=$numMessages&mailbox=$urlMailbox\" TARGET=right style=\"text-decoration:none\">"._("purge")."</A></B>)";
+ $line .= " (<B><A HREF=\"empty_trash.php\" style=\"text-decoration:none\">"._("purge")."</A></B>)";
$line .= "\n</small>\n";
}
$line .= "</NOBR>";
is_logged_in();
?>
-<table width=100% cellpadding=2 cellspacing=2 border=0>
+<br>
+<table width=95% align=center cellpadding=2 cellspacing=2 border=0>
<tr><td bgcolor="<? echo $color[0] ?>">
<center><b><? echo _("Options") ?></b></center>
</td></tr></table>
-<br>
<?
if ($submit_personal) {
setPref($data_dir, $username, "use_signature", stripslashes($usesignature));
if (isset($signature_edit)) setSig($data_dir, $username, stripslashes($signature_edit));
- echo "<center><b>"._("Successfully saved personal information!")."</b></center><br>";
+ echo "<br><center><b>"._("Successfully saved personal information!")."</b></center><br>";
} else if ($submit_display) {
# Save display preferences
setPref($data_dir, $username, "chosen_theme", $chosentheme);
setPref($data_dir, $username, "left_size", $leftsize);
setPref($data_dir, $username, "use_javascript_addr_book", $javascript_abook);
- echo "<center><b>"._("Successfully saved display preferences!")."</b><br>";
+ echo "<br><center><b>"._("Successfully saved display preferences!")."</b><br>";
echo "<a href=\"webmail.php?right_frame=options.php\" target=_top>"._("Refresh Page")."</a></center><br>";
} else if ($submit_folder) {
# Save folder preferences
setPref($data_dir, $username, "sent_folder", "");
}
setPref($data_dir, $username, "folder_prefix", $folderprefix);
- echo "<center><b>"._("Successfully saved folder preferences!")."</b><br>";
+ echo "<br><center><b>"._("Successfully saved folder preferences!")."</b><br>";
echo "<a href=\"left_main.php\" target=left>"._("Refresh Folders")."</a></center><br>";
}
?>
<table width=90% cellpadding=0 cellspacing=10 border=0 align=center>
<tr>
- <td valign=top>
+ <td width=50% valign=top>
<table width=100% cellpadding=3 cellspacing=0 border=0>
<tr>
<td bgcolor="<? echo $color[9] ?>">
</tr>
</table><br>
</td>
- <td valign=top>
+ <td valign=top width=50%>
<table width=100% cellpadding=3 cellspacing=0 border=0>
<tr>
<td bgcolor="<? echo $color[9] ?>">
displayPageHeader($color, "None");
$chosen_language = getPref($data_dir, $username, "language");
?>
- <table width=100% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
+ <br>
+ <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
<center><b><? echo _("Options") . " - " . _("Display Preferences"); ?></b></center>
</td></tr></table>
$boxes = sqimap_mailbox_list($imapConnection, $boxes);
sqimap_logout($imapConnection);
?>
- <table width=100% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
+ <br>
+ <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
<center><b><? echo _("Options") . " - " . _("Folder Preferences"); ?></b></center>
</td></tr></table>
include("../src/load_prefs.php");
displayPageHeader($color, "None");
?>
- <table width=100% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
+ <br>
+ <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
<center><b><? echo _("Options") . " - " . _("Message Highlighting"); ?></b></center>
</td></tr></table>
echo "<form action=\"options_highlight.php\">\n";
echo "<input type=\"hidden\" value=\"save\" name=\"action\">\n";
echo "<input type=\"hidden\" value=\"$id\" name=\"id\">\n";
- echo "<table width=80% align=center cellpadding=2 cellspacing=0 border=0>\n";
- echo " <tr>\n";
- echo " <td align=right width=25%>\n";
+ echo "<table width=80% align=center cellpadding=3 cellspacing=0 border=0>\n";
+ echo " <tr bgcolor=\"$color[0]\">\n";
+ echo " <td align=right width=25%><b>\n";
echo _("Identifying name") . ":";
- echo " </td>\n";
+ echo " </b></td>\n";
echo " <td width=75%>\n";
echo " <input type=\"text\" value=\"".$message_highlight_list[$id]["name"]."\" name=\"name\">";
echo " </td>\n";
echo " </tr>\n";
- echo " <tr><td><br><br></td></tr>\n";
- echo " <tr>\n";
- echo " <td align=right width=25%>\n";
+ echo " <tr><td><small><small> </small></small></td></tr>\n";
+ echo " <tr bgcolor=\"$color[0]\">\n";
+ echo " <td align=right width=25%><b>\n";
echo _("Color") . ":";
- echo " </td>\n";
+ echo " </b></td>\n";
echo " <td width=75%>\n";
echo " <input type=\"radio\" name=color_type value=1$selected_choose> <select name=newcolor_choose>\n";
echo " <option value=\"$color_list[0]\"$selected0>" . _("Dark Blue") . "\n";
echo "\" name=\"newcolor_input\" size=7> "._("Ex: 63aa7f")."<br>\n";
echo " </td>\n";
echo " </tr>\n";
- echo " <tr><td><br><br></td></tr>\n";
- echo " <tr>\n";
- echo " <td align=right width=25%>\n";
+ echo " <tr><td><small><small> </small></small></td></tr>\n";
+ echo " <tr bgcolor=\"$color[0]\">\n";
+ echo " <td align=right width=25%><b>\n";
echo _("Match") . ":";
- echo " </td>\n";
+ echo " </b></td>\n";
echo " <td width=75%>\n";
echo " <select name=match_type>\n";
if ($message_highlight_list[$id]["match_type"] == "from") echo " <option value=\"from\" selected>From\n";
$email_address = getPref($data_dir, $username, "email_address");
?>
- <table width=100% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
+ <br>
+ <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
<center><b><? echo _("Options") . " - " . _("Personal Information"); ?></b></center>
</td></tr></table>
$read = sqimap_read_data ($imapConnection, "a003", true, $a, $b);
echo "<br>";
- echo "<table width=95% cellpadding=2 cellspacing=0 border=0 align=center>\n";
+ echo "<table width=100% cellpadding=2 cellspacing=0 border=0 align=center>\n";
echo " <TR><TD BGCOLOR=\"$color[9]\" WIDTH=100%><center><b>" . _("Viewing full header") . "</b> - ";
echo "<a href=\"read_body.php?mailbox=".urlencode($mailbox)."&passed_id=$passed_id&startMessage=$startMessage&show_more=$show_more\">";
- echo ""._("View message") . "</a></b></center></td></tr>\n";
- echo "<tr><td><pre>";
+ echo ""._("View message") . "</a></b></center></td></tr></table>\n";
+ echo "<table width=99% cellpadding=2 cellspacing=0 border=0 align=center>\n";
+ echo "<tr><td><small><pre>";
for ($i=1; $i < count($read)-1; $i++) {
$read[$i] = htmlspecialchars($read[$i]);
if (substr($read[$i], 0, 1) != "\t" &&
}
echo "$read[$i]";
}
- echo "</pre></td></tr></table>\n";
+ echo "</pre></small></td></tr></table>\n";
echo "</body></html>";
exit;
}
// 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 "</BODY></HTML>";
- exit;
+ $mailbox = "INBOX";
+ $sort = $newsort = 0;
+ $startMessage = 1;
+
+// displayPageHeader($color, "None");
+// general_info($motd, $org_logo, $version, $org_name, $color);
+// echo "</BODY></HTML>";
+// exit;
}
sqimap_mailbox_select($imapConnection, $mailbox);