This text is available in Russian at
http://www.mricon.com/SM/russian_apache.html
+*****
+NOTE: Russian Apache will recode all attachments, even if they
+are binary, thus corrupting them. To fix this problem, refer to
+Russian Apache FAQ: http://apache.lexa.ru/faq.html#5
+*****
+
This howto is for people who are using Russian Apache and
who use charsets other than koi8-r for their source documents.
If you _do_ use KOI8-R as default encoding for all your source
/** This formats a CC string if they hit "reply all" **/
if ($send_to_cc != "") {
+ $send_to_cc = ereg_replace( '"[^"]*"', "", $send_to_cc);
$send_to_cc = ereg_replace(";", ",", $send_to_cc);
$sendcc = explode(",", $send_to_cc);
$send_to_cc = "";
header ("Location: $location/search.php?where=".urlencode($where)."&what=".urlencode($what)."&mailbox=".urlencode($mailbox));
else
header ("Location: $location/right_main.php?sort=$sort&startMessage=$startMessage&mailbox=".urlencode($mailbox));
+
+ sqimap_logout($imapConnection);
?>
** Also allows displaying of attachments when possible.
**/
- session_start();
-
if (!isset($config_php))
include("../config/config.php");
if (!isset($strings_php))
switch($type0) {
case "text":
$body = decodeBody($body, $header->encoding);
- header("Content-type: application/octet-stream; name=\"$filename\"");
header("Content-Disposition: attachment; filename=\"$filename\"");
+ header("Content-type: application/octet-stream; name=\"$filename\"");
if ($type1 == "plain") {
echo _("Subject") . ": " . decodeHeader(stripslashes($top_header->subject)) . "\n";
echo " " . _("From") . ": " . decodeHeader(stripslashes($top_header->from)) . "\n";
break;
default:
$body = decodeBody($body, $header->encoding);
- header("Content-type: application/octet-stream; name=\"$filename\"");
header("Content-Disposition: attachment; filename=\"$filename\"");
+ header("Content-type: application/octet-stream; name=\"$filename\"");
echo $body;
break;
}
break;
default:
$body = decodeBody($body, $header->encoding);
- header("Content-type: $type0/$type1; name=\"$filename\"");
header("Content-Disposition: attachment; filename=\"$filename\"");
+ header("Content-type: $type0/$type1; name=\"$filename\"");
echo $body;
break;
}
echo "</TABLE>";
echo " </TD></TR>";
echo "</table>";
- echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=100% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
+ echo "<TABLE COLS=1 CELLSPACING=0 WIDTH=97% BORDER=0 ALIGN=CENTER CELLPADDING=0>\n";
echo " <TR><TD BGCOLOR=\"$color[4]\" WIDTH=100%>\n";
$body = formatBody($imapConnection, $message, $color, $wrap_at);
include("../src/load_prefs.php");
// If the page has been loaded without a specific mailbox,
- // just show a page of general info.
+ // send them to the inbox
if (!isset($mailbox)) {
$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);