- Luke Ehresman (luke@squirrelmail.org),
- Nathan Ehresman (nathan@squirrelmail.org),
- Gustav Foseid (gustavf@squirrelmail.org),
- Pål Løberg (pallo@squirrelmail.org),
- Shane Wilson,
- Sergiusz Pawlowicz,
- Steve Gare,
- Gerrit Padgham,
- Matt Phillips,
- David Whittington,
- Lewis Bergman,
+ Developers:
+ -----------
+ Luke Ehresman (luke@squirrelmail.org)
+ Nathan Ehresman (nathan@squirrelmail.org)
+ Gustav Foseid (gustavf@squirrelmail.org)
+ Pål Løberg (pallo@squirrelmail.org)
+ Shane Wilson
+ Sergiusz Pawlowicz
+ Steve Gare
+ Gerrit Padgham
+ Matt Phillips
+ David Whittington
+ Lewis Bergman
Translations:
- Norwegian: Gustav Foseid (gustavf@squirrelmail.org),
- German: Chris Thil,
- Russian: Konstantin Riabitsev,
- Polish: Lukasz Klimek (casa@lo.pila.pl),
+ -------------
+ Norwegian: Gustav Foseid (gustavf@squirrelmail.org)
+ German: Chris Thil
+ Russian: Konstantin Riabitsev
+ Polish: Lukasz Klimek (casa@lo.pila.pl)
Help System:
- Lewis Bergman
+ ------------
+ Lewis Bergman
echo "</TD></TR></TABLE>";
}
- function messages_deleted_message($mailbox, $sort, $startMessage, $color) {
- $urlMailbox = urlencode($mailbox);
-
- echo "<BR>";
- echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
- echo " <TR>";
- echo " <TD BGCOLOR=\"$color[0]\">";
- echo " <B><CENTER>". _("Messages Deleted") ."</CENTER></B>";
- echo " </TD></TR><TR><TD>";
- echo " <CENTER><BR>". _("The selected messages were deleted successfully.") ."<BR>\n";
- echo " <BR>";
- echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
- printf (_("Click here to return to %s"), $mailbox);
- echo "</A>.";
- echo " </CENTER>";
- echo " </TD></TR>";
- echo "</TABLE>";
- }
-
- function messages_moved_message($mailbox, $sort, $startMessage, $color) {
- $urlMailbox = urlencode($mailbox);
-
- echo "<BR>";
- echo "<TABLE COLS=1 WIDTH=70% NOBORDER BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
- echo " <TR>";
- echo " <TD BGCOLOR=\"$color[0]\">";
- echo " <B><CENTER>". _("Messages Moved") ."</CENTER></B>";
- echo " </TD></TR><TR><TD>";
- echo " <CENTER><BR>". _("The selected messages were moved successfully.") ."<BR>\n";
- echo " <BR>";
- echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
- printf (_("Click here to return to %s"), $mailbox);
- echo "</A>.";
- echo " </CENTER>";
- echo " </TD></TR>";
- echo "</TABLE>";
- }
-
function error_message($message, $mailbox, $sort, $startMessage, $color) {
$urlMailbox = urlencode($mailbox);
echo " </TD></TR><TR><TD>";
echo " <CENTER><BR>$message<BR>\n";
echo " <BR>";
- echo " <A HREF=\"webmail.php?right_frame=right_main.php&sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\" TARGET=_top>";
+ echo " <A HREF=\"right_main.php?sort=$sort&startMessage=$startMessage&mailbox=$urlMailbox\">";
printf (_("Click here to return to %s"), $mailbox);
echo "</A>.";
echo " </TD></TR>";
}
function sqimap_get_small_header ($imap_stream, $id, $sent) {
- fputs ($imap_stream, "a001 FETCH $id BODY.PEEK[HEADER.FIELDS (Date To From Subject Message-Id X-Priority)]\r\n");
+ fputs ($imap_stream, "a001 FETCH $id BODY.PEEK[HEADER.FIELDS (Date To From Cc Subject Message-Id X-Priority)]\r\n");
$read = sqimap_read_data ($imap_stream, "a001", true, $response, $message);
$subject = _("(no subject)");
$priority = trim(substr($read[$i], 11));
} else if (eregi ("^message-id:", $read[$i])) {
$messageid = trim(substr($read[$i], 11));
+ } else if (eregi ("^cc:", $read[$i])) {
+ $cc = substr($read[$i], 3);
} else if (eregi ("^date:", $read[$i])) {
$date = substr($read[$i], 5);
} else if (eregi ("^subject:", $read[$i])) {
if ($sent == true)
$header->from = $to;
else
- $header->from = $from;
+ $header->from = $from;
$header->date = $date;
$header->subject = $subject;
$header->to = $to;
$header->priority = $priority;
$header->message_id = $messageid;
+ $header->cc = $cc;
return $header;
}
** the documentation folder for more information about this array.
******************************************************************************/
function sqimap_get_message ($imap_stream, $id, $mailbox) {
-
$header = sqimap_get_message_header($imap_stream, $id, $mailbox);
- $msg = sqimap_get_message_body($imap_stream, &$header);
+ $msg = sqimap_get_message_body(&$header);
return $msg;
}
/******************************************************************************
** Returns the body of a message.
******************************************************************************/
- function sqimap_get_message_body ($imap_stream, &$header) {
+ function sqimap_get_message_body (&$header) {
$id = $header->id;
//fputs ($imap_stream, "a001 FETCH $id:$id BODY[TEXT]\r\n");
//$read = sqimap_read_data ($imap_stream, "a001", true, $response, $message);
+ /*
$i = 0;
$j = 0;
while ($i < count($read)-1) {
}
$i++;
}
+ */
return decodeMime($body, &$header);
}
if ($mailbox == $sent_folder) { $italic = "<i>"; $italic_end = "</i>"; }
for ($i=0; $i < count($message_highlight_list); $i++) {
- if (eregi($message_highlight_list[$i]["value"],$msg[strtoupper($message_highlight_list[$i]["match_type"])])) {
+ if ($message_highlight_list[$i]["match_type"] == "to_cc") {
+ if (eregi($message_highlight_list[$i]["value"],$msg["TO"]) || eregi($message_highlight_list[$i]["value"],$msg["CC"])) {
+ $hlt_color = $message_highlight_list[$i]["color"];
+ continue;
+ }
+ } else if (eregi($message_highlight_list[$i]["value"],$msg[strtoupper($message_highlight_list[$i]["match_type"])])) {
$hlt_color = $message_highlight_list[$i]["color"];
continue;
}
$subject[$q] = $hdr->subject;
$to[$q] = $hdr->to;
$priority[$q] = $hdr->priority;
+ $cc[$q] = $hdr->cc;
$flags[$q] = sqimap_get_flags ($imapConnection, $q+1);
}
$messages[$j]["SUBJECT"] = decodeHeader($subject[$j]);
$messages[$j]["TO"] = decodeHeader($to[$j]);
$messages[$j]["PRIORITY"] = $priority[$j];
+ $messages[$j]["CC"] = $cc[$j];
$num = 0;
while ($num < count($flags[$j])) {
global $username, $key, $imapServerAddress, $imapPort;
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
sqimap_mailbox_select($imap_stream, $header->mailbox);
-
- return mime_structure ($imap_stream, $header);
+ $struct = mime_structure ($imap_stream, $header);
+ sqimap_logout($imap_stream);
+ return $struct;
}
// This is here for debugging purposese. It will print out a list
$ent_num = findDisplayEntity ($message);
$body = mime_fetch_body ($imap_stream, $id, $ent_num);
+ sqimap_logout($imap_stream);
// If there are other types that shouldn't be formatted, add
// them here
writeBody ($imap_stream, $body);
sqimap_append_done ($imap_stream);
}
-
+ sqimap_logout($imap_stream);
// Delete the files uploaded for attaching (if any).
deleteAttachments();
}
function replace_escaped_spaces ($string) {
return str_replace(" ", " ", $string);
}
+
+ function get_location () {
+ # This determines the location to forward to relative
+ # to your server. If this doesn't work correctly for
+ # you (although it should), you can remove all this
+ # code except the last two lines, and change the header()
+ # function to look something like this, customized to
+ # the location of SquirrelMail on your server:
+ #
+ # http://www.myhost.com/squirrelmail/src/login.php
+
+ global $PHP_SELF, $SERVER_NAME, $HTTPS, $HTTP_HOST;
+
+ // Get the path
+ $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
+
+ // Check if this is a HTTPS or regular HTTP request
+ $proto = "http://";
+ if(isset($HTTPS) && $HTTPS == 'on' ) {
+ $proto = "https://";
+ }
+
+ // Get the hostname from the Host header or server config.
+ // Fallback is to omit the server name and use a relative URI,
+ // although this is not RFC 2616 compliant.
+ if(isset($HTTP_HOST) && !empty($HTTP_HOST)) {
+ $location = $proto . $HTTP_HOST . $path;
+ } else if(isset($SERVER_NAME) && !empty($SERVER_NAME)) {
+ $location = $proto . $SERVER_NAME . $path;
+ } else {
+ $location = $path;
+ }
+ return $location;
+ }
?>
<?php
- // Get the path
- $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
+ include "functions/strings.php";
- // Check if this is a HTTPS or regular HTTP request
- $proto = "http://";
- if(isset($HTTPS) && $HTTPS == 'on' ) {
- $proto = "https://";
- }
-
- // Get the hostname from the Host header or server config.
- // Fallback is to omit the server name and use a relative URI,
- // although this is not RFC 2616 compliant.
- if(isset($HTTP_HOST) && !empty($HTTP_HOST)) {
- $location = $proto . $HTTP_HOST . $path;
- } else if(isset($SERVER_NAME) && !empty($SERVER_NAME)) {
- $location = $proto . $SERVER_NAME . $path;
- } else {
- $location = $path;
- }
-
- // Redirect
+ $location = get_location();
header("Location: $location/src/login.php\n\n");
exit();
?>
else if ($reply_id)
$id = $reply_id;
+
if ($id) {
sqimap_mailbox_select($imapConnection, $mailbox);
$message = sqimap_get_message($imapConnection, $id, $mailbox);
- $message = getEntity($message, $ent_num);
+ if ($ent_num)
+ $message = getEntity($message, $ent_num);
if ($message->header->type0 == "text" || $message->header->type1 == "message") {
- $body = decodeBody(mime_fetch_body($imapConnection, $id, $message->header->entity_id), $message->header->encoding);
+ if ($ent_num)
+ $body = decodeBody(mime_fetch_body($imapConnection, $id, $ent_num), $message->header->encoding);
+ else
+ $body = decodeBody(mime_fetch_body($imapConnection, $id, 1), $message->header->encoding);
} else {
$body = "";
}
$body_ary = explode("\n", $body);
$body = "";
for ($i=0; $i < count($body_ary); $i++) {
- $tmp = $body_ary[$i];
+ if ($i==0 && $forward_id)
+ $tmp = _("-------- Original Message ---------\n") . $body_ary[$i];
+ else
+ $tmp = $body_ary[$i];
if ($forward_id)
- $body = "$body$tmp\n";
+ $body .= "$body$tmp\n";
else
- $body = "$body> $tmp\n";
+ $body .= "$body> $tmp\n";
}
-
+ return $body;
}
if (!$send_to) {
checkInput(true);
showInputForm();
+ sqimap_logout($imapConnection);
}
} else if ($html_addr_search_done) {
is_logged_in();
$newmail = true;
newMail();
showInputForm();
+ sqimap_logout($imapConnection);
}
?>
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
sqimap_mailbox_select($imapConnection, $mailbox);
- displayPageHeader($color, $mailbox);
-
sqimap_messages_delete($imapConnection, $message, $message, $mailbox);
if ($auto_expunge)
sqimap_mailbox_expunge($imapConnection, $mailbox);
- messages_deleted_message($mailbox, $sort, $startMessage, $color);
+ $location = get_location();
+ header ("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=".urlencode($mailbox));
?>
-</BODY></HTML>
displayPageHeader($color, "None");
- echo "<TABLE WIDTH=100% COLS=1 ALIGN=CENTER>\n";
- echo " <TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>\n";
+ echo "<br>";
+ echo "<TABLE WIDTH=95% COLS=1 ALIGN=CENTER>\n";
+ echo " <TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER>\n";
echo _("Folders");
echo " </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";
+ if ($success == "subscribe") {
+ echo "<b>" . _("Subscribed successfully!") . "</b><br>";
+ } else if ($success == "unsubscribe") {
+ echo "<b>" . _("Unsubscribed successfully!") . "</b><br>";
+ } else if ($success == "delete") {
+ echo "<b>" . _("Deleted folder successfully!") . "</b><br>";
+ } else if ($success == "create") {
+ echo "<b>" . _("Created folder successfully!") . "</b><br>";
+ } 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 " </center></td></tr>\n";
+ echo "</table><br>\n";
+ }
$imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection);
if ($imap_server_type == "cyrus") {
if ((!sqimap_mailbox_exists ($imapConnection, $sent_folder)) || (!sqimap_mailbox_exists ($imapConnection, $trash_folder))) {
echo "<TABLE WIDTH=70% COLS=1 ALIGN=CENTER>\n";
- echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER><B>";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
echo _("Special Folder Options");
echo "</B></TD></TR>";
- echo "<TR><TD BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
+ echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
echo _("In order for SquirrelMail to provide the full set of options you need to create the special folders listed below. Just click the check box and hit the create button.");
echo "<FORM ACTION=\"folders.php\" METHOD=\"POST\">\n";
if (!sqimap_mailbox_exists ($imapConnection, $sent_folder)) {
}
/** DELETING FOLDERS **/
- echo "<TABLE WIDTH=70% COLS=1 ALIGN=CENTER>\n";
- echo "<TR><TD BGCOLOR=\"$color[0]\" 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><B>";
echo _("Delete Folder");
echo "</B></TD></TR>";
- echo "<TR><TD BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
+ echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
$count_special_folders = 0;
$num_max = 1;
echo "<INPUT TYPE=SUBMIT VALUE=\"";
echo _("Delete");
echo "\">\n";
- echo "</FORM><BR></TD></TR>\n";
+ echo "</FORM></TD></TR>\n";
} else {
echo _("No mailboxes found") . "<br><br></td><tr>";
}
+ echo "<tr><td bgcolor=\"$color[4]\"> </td></tr>\n";
/** CREATING FOLDERS **/
- echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER><B>";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
echo _("Create Folder");
echo "</B></TD></TR>";
- echo "<TR><TD BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
+ 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 _("as a subfolder of");
echo "<BR>";
}
echo "<INPUT TYPE=SUBMIT VALUE=Create>\n";
- echo "</FORM><BR></TD></TR><BR>\n";
+ echo "</FORM></TD></TR>\n";
+
+ echo "<tr><td bgcolor=\"$color[4]\"> </td></tr>\n";
/** RENAMING FOLDERS **/
- echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER><B>";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
echo _("Rename a Folder");
echo "</B></TD></TR>";
- echo "<TR><TD BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
+ echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER>";
if ($count_special_folders < count($boxes)) {
echo "<FORM ACTION=\"folders_rename_getname.php\" METHOD=\"POST\">\n";
echo "<TT><SELECT NAME=old>\n";
echo _("No mailboxes found") . "<br><br></td></tr>";
}
$boxes_sub = $boxes;
+
+ echo "<tr><td bgcolor=\"$color[4]\"> </td></tr>\n";
/** UNSUBSCRIBE FOLDERS **/
- echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER><B>";
+ echo "<TR><TD BGCOLOR=\"$color[9]\" ALIGN=CENTER><B>";
echo _("Unsubscribe/Subscribe");
echo "</B></TD></TR>";
- echo "<TR><TD BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
+ echo "<TR><TD BGCOLOR=\"$color[0]\" 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";
$boxes_sub = $boxes;
/** SUBSCRIBE TO FOLDERS **/
-
- echo "<TR><TD BGCOLOR=\"$color[4]\" ALIGN=CENTER>";
+ 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 " <OPTION VALUE=\"$box\">$box2\n";
}
}
+ sqimap_logout($imap_stream);
echo "</select></tt>";
echo "<INPUT TYPE=SUBMIT VALUE=\"";
echo _("Subscribe");
echo _("No mailboxes found") . "<br><br></td></tr></table>";
}
+ sqimap_logout($imapConnection);
?>
</BODY></HTML>
}
fputs($imapConnection, "1 logout\n");
-// if ($auto_forward == true) {
-// header ("Location: webmail.php?right_frame=folders.php");
-// } else {
+ $location = get_location();
+ header ("Location: $location/folders.php?success=create");
+ sqimap_logout($imapConnection);
+ /*
displayPageHeader($color, "None");
echo "<BR><BR><BR><CENTER><B>";
echo _("Folder Created!");
echo _("to continue.");
echo "</CENTER>";
echo "</BODY></HTML>";
-// }
+ */
?>
include("../src/load_prefs.php");
- displayPageHeader($color, "None");
-
$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list ($imap_stream);
/** Log out this session **/
sqimap_logout($imap_stream);
+ $location = get_location();
+ header ("Location: $location/folders.php?success=delete");
+ /*
echo "<BR><BR><BR><CENTER><B>";
echo _("Folder Deleted!");
echo "</B><BR><BR>";
echo "</CENTER>";
echo "</BODY></HTML>";
+ */
?>
include("../src/load_prefs.php");
- $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$dm = sqimap_get_delimiter($imapConnection);
if (strpos($orig, $dm))
/** Log out this session **/
sqimap_logout($imapConnection);
-
+ $location = get_location();
+ header ("Location: $location/folders.php?success=rename");
+ sqimap_logout($imapConnection);
+ /*
displayPageHeader($color, "None");
echo "<BR><BR><BR><CENTER><B>";
echo _("Folder Renamed!");
echo "</CENTER>";
echo "</BODY></HTML>";
+ */
?>
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$dm = sqimap_get_delimiter($imapConnection);
+ $location = get_location();
if ($method == "sub") {
$mailbox = trim($mailbox);
sqimap_subscribe ($imapConnection, $mailbox);
+ header("Location: $location/folders.php?success=subscribe");
} else {
sqimap_unsubscribe ($imapConnection, $mailbox);
+ header("Location: $location/folders.php?success=unsubscribe");
}
+ sqimap_logout($imapConnection);
+ /*
displayPageHeader($color, "None");
echo "<BR><BR><BR><CENTER><B>";
if ($method == "sub") {
echo _("to continue.");
echo "</CENTER>";
echo "</BODY></HTML>";
+ */
?>
echo "\n$line<BR>\n";
}
-
- fclose($imapConnection);
-
+ sqimap_logout($imapConnection);
?>
</BODY></HTML>
if ($auto_expunge) {
sqimap_mailbox_expunge($imapConnection, $mailbox);
}
- if ($auto_forward) {
- header ("Location: right_main.php");
- } else {
- displayPageHeader($color, $mailbox);
- messages_deleted_message($mailbox, $sort, $startMessage, $color);
- }
+ $location = get_location();
+ header ("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=". urlencode($mailbox));
} else {
displayPageHeader($color, $mailbox);
error_message(_("No messages were selected."), $mailbox, $sort, $startMessage, $color);
if ($auto_expunge == true)
sqimap_mailbox_expunge($imapConnection, $mailbox);
- if ($auto_forward) {
- header ("Location: right_main.php");
- } else {
- displayPageHeader($color, $mailbox);
- messages_moved_message($mailbox, $sort, $startMessage, $color);
- }
+ $location = get_location();
+ header ("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=". urlencode($mailbox));
} else {
displayPageHeader($color, $mailbox);
error_message(_("No messages were selected."), $mailbox, $sort, $startMessage, $color);
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
$boxes = sqimap_mailbox_list($imapConnection, $boxes);
- fputs($imapConnection, "1 logout\n");
-
+ sqimap_logout($imapConnection);
?>
<table width=100% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<? echo $color[0] ?>">
<center><b><? echo _("Options") . " - " . _("Folder Preferences"); ?></b></center>
else echo " <option value=\"from\">From\n";
if ($message_highlight_list[$id]["match_type"] == "to") echo " <option value=\"to\" selected>To\n";
else echo " <option value=\"to\">To\n";
+ if ($message_highlight_list[$id]["match_type"] == "cc") echo " <option value=\"cc\" selected>Cc\n";
+ else echo " <option value=\"cc\">Cc\n";
+ if ($message_highlight_list[$id]["match_type"] == "to_cc") echo " <option value=\"to_cc\" selected>To or Cc\n";
+ else echo " <option value=\"to_cc\">To or Cc\n";
if ($message_highlight_list[$id]["match_type"] == "subject") echo " <option value=\"subject\" selected>Subject\n";
else echo " <option value=\"subject\">Subject\n";
echo " </select>\n";
** the resulting emails in the right frame.
**/
-
-
-
-
-
session_start();
if (!isset($config_php))
echo " <TR><TD BGCOLOR=\"$color[9]\"> </TD></TR>";
echo "</TABLE>\n";
+ sqimap_logout($imapConnection);
?>
do_hook ("login_before");
// verify that username and password are correct
$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+ sqimap_logout($imapConnection);
do_hook ("login_verified");
}