Przeglądaj źródła

- fixed attachment names from being lower case
- added "Significant Contributions" section to AUTHORS file
- Fixed misspelling of Portuguese (was Portugese)

Luke Ehresman 25 lat temu
rodzic
commit
6fefdf0cc3
4 zmienionych plików z 29 dodań i 23 usunięć
  1. 17 12
      AUTHORS
  2. 1 1
      functions/i18n.php
  3. 10 9
      functions/mime.php
  4. 1 1
      src/compose.php

+ 17 - 12
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...

+ 1 - 1
functions/i18n.php

@@ -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

+ 10 - 9
functions/mime.php

@@ -65,11 +65,12 @@
          $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) {
@@ -195,20 +196,20 @@
          // 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;
@@ -306,7 +307,7 @@
                $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);

+ 1 - 1
src/compose.php

@@ -351,7 +351,7 @@
       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;
          }
       }