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 7b7fd7d593ddc02d6072e2b291cdcac2e6dd63cc..89a2b51574111df33df1b27d361cfef6d7f6c7e9 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 5617da79e13599fa36313e5d466e2e3dc7bfc7ce..9c8acbaa8d23817794c735e1f65bd9375c66c853 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 3f2813973b1f66837ca302505a4a21fbfcc0b9b6..f485b387b581bd922c73b02073f4792e24a3cf00 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 9f60f343d3da046c7758ee13b3b4e93b3177f9dc..ef6df67eee2727104066367bf862dae8ee6f5dcf 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 59e6f0d32a288c2561c95135e86e562d0d1e7c02..573869a19d48c2c3711398940f95805097353316 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 619aa938b4c304b83fdd8928eb69f690b5ca1e92..c1f96f84feae32e419823ce69ab6daa07aab13fc 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);