- fixed attachment names from being lower case
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 5 Aug 2000 10:38:22 +0000 (10:38 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 5 Aug 2000 10:38:22 +0000 (10:38 +0000)
- added "Significant Contributions" section to AUTHORS file
- Fixed misspelling of Portuguese (was Portugese)

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@680 7612ce4b-ef26-0410-bec9-ea0150e637f0

AUTHORS
functions/i18n.php
functions/mime.php
src/compose.php

diff --git a/AUTHORS b/AUTHORS
index 805f18a..e21acde 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,23 +1,28 @@
  Developers:
  -----------
-   Luke Ehresman (luke@squirrelmail.org)
-   Nathan Ehresman (nathan@squirrelmail.org)
-   Gustav Foseid (gustavf@squirrelmail.org)
-   Pål Løberg (pallo@squirrelmail.org)
+   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 (cj@limburgerhof.de)
-   Russian:      Konstantin Riabitsev (graf@relhum.org)
-   Polish:       Lukasz Klimek (casa@lo.pila.pl)
-   Swedish:      Tobias Ekbom (tobias@vallcom.net)     
-   Dutch:        Arjan Halma (arjan@halma.nl)
-   Portugese (Brazil): Henrique Moura (henriquemoura@hotmail.com)
+   Norwegian:    Gustav Foseid <gustavf@squirrelmail.org>
+   German:       Chris Thil <cj@limburgerhof.de>
+   Russian:      Konstantin Riabitsev <graf@relhum.org>
+   Polish:       Lukasz Klimek <casa@lo.pila.pl>
+   Swedish:      Tobias Ekbom <tobias@vallcom.net>     
+   Dutch:        Arjan Halma <arjan@halma.nl>
+   Portuguese (Brazil): Henrique Moura <henriquemoura@hotmail.com>
+
+ Significant Contributions:
+ --------------------------
+   Konstantin Riabitsev <graf@relhum.org>
+   Alex Bleeker <beheer@hackers.nl>
+   Many others...
index 889affd..33dbc3b 100644 (file)
@@ -27,7 +27,7 @@
    $languages["sv"]["CHARSET"] = "iso-8859-1";
    $languages["nl"]["NAME"]    = "Dutch";
    $languages["nl"]["CHARSET"] = "iso-8859-1";
-   $languages["pt_BR"]["NAME"] = "Portugese (Brazil)";
+   $languages["pt_BR"]["NAME"] = "Portuguese (Brazil)";
    $languages["pt_BR"]["CHARSET"] = "iso-8859-1";
 
    // Decodes a string to the internal encoding from the given charset
index 25dcca5..18e2dd7 100644 (file)
          $read = fgets ($imap_stream, 10000);
          $response = substr($read, 0, 4);
       }
-      $read = strtolower($bodystructure);
+   //   $read = strtolower($bodystructure);
+      $read = $bodystructure;
 
       if ($debug_mime) echo "<tt>$read</tt><br><br>";
       // isolate the body structure and remove beginning and end parenthesis
-      $read = trim(substr ($read, strpos($read, "bodystructure") + 13));
+      $read = trim(substr ($read, strpos(strtolower($read), "bodystructure") + 13));
       $read = trim(substr ($read, 0, -1));
       $end = mime_match_parenthesis(0, $read);
       while ($end == strlen($read)-1) {
          // This is where all the text parts get put into the header
          switch ($elem_num) {
             case 1: 
-               $msg->header->type0 = $text;
-               if ($debug_mime) echo "<tt>type0 = $text</tt><br>";
+               $msg->header->type0 = strtolower($text);
+               if ($debug_mime) echo "<tt>type0 = ".strtolower($text)."</tt><br>";
                break;
             case 2: 
-               $msg->header->type1 = $text;
-               if ($debug_mime) echo "<tt>type1 = $text</tt><br>";
+               $msg->header->type1 = strtolower($text);
+               if ($debug_mime) echo "<tt>type1 = ".strtolower($text)."</tt><br>";
                break;
             case 5:
                $msg->header->description = $text;
                if ($debug_mime) echo "<tt>description = $text</tt><br>";
                break;
             case 6:
-               $msg->header->encoding = $text;
-               if ($debug_mime) echo "<tt>encoding = $text</tt><br>";
+               $msg->header->encoding = strtolower($text);
+               if ($debug_mime) echo "<tt>encoding = ".strtolower($text)."</tt><br>";
                break;
             case 7:
                $msg->header->size = $text;
                $structure = trim(substr($structure, strlen($tmp) + 2));
                
                $k = count($props);
-               $props[$k]["name"] = $tmp;
+               $props[$k]["name"] = strtolower($tmp);
                $props[$k]["value"] = $value;
             } else if ($char == "(") {
                $end = mime_match_parenthesis (0, $structure);
index afc4652..6607522 100644 (file)
       error_reporting(0); // Rename will produce error output if it fails
       if (!rename($attachfile, $attachment_dir.$localfilename)) {
          if (!copy($attachfile, $attachment_dir.$localfilename)) {
-            plain_error_message(_("Could not move/copy file. File not attached"));
+            plain_error_message(_("Could not move/copy file. File not attached"), $color);
             $failed = true;
          }
       }