added a bunch of patches from the patch manager
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 31 Jul 2000 10:08:46 +0000 (10:08 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 31 Jul 2000 10:08:46 +0000 (10:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@654 7612ce4b-ef26-0410-bec9-ea0150e637f0

doc/README.russian_apache
src/compose.php
src/delete_message.php
src/download.php
src/read_body.php
src/right_main.php

index 7b7fd7d..89a2b51 100644 (file)
@@ -4,6 +4,12 @@ HOW TO CONFIGURE SQUIRREL-MAIL WITH RUSSIAN APACHE
 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
index 5617da7..9c8acba 100644 (file)
 
       /** 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 = "";
index 3f28139..f485b38 100644 (file)
@@ -36,4 +36,6 @@
       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);
 ?>
index 9f60f34..ef6df67 100644 (file)
@@ -9,8 +9,6 @@
     **  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;
       }
index 59e6f0d..573869a 100644 (file)
    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);
index 619aa93..c1f96f8 100644 (file)
    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);