From: lkehresman Date: Sat, 5 Aug 2000 10:38:22 +0000 (+0000) Subject: - fixed attachment names from being lower case X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=22ef75361f3c2ea85c4cc483157046f066b790cb - fixed attachment names from being lower case - 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 --- diff --git a/AUTHORS b/AUTHORS index 805f18a8..e21acde1 100644 --- 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 + Nathan Ehresman + Gustav Foseid + Pål Løberg 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 + German: Chris Thil + Russian: Konstantin Riabitsev + Polish: Lukasz Klimek + Swedish: Tobias Ekbom + Dutch: Arjan Halma + Portuguese (Brazil): Henrique Moura + + Significant Contributions: + -------------------------- + Konstantin Riabitsev + Alex Bleeker + Many others... diff --git a/functions/i18n.php b/functions/i18n.php index 889affd2..33dbc3bb 100644 --- a/functions/i18n.php +++ b/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 diff --git a/functions/mime.php b/functions/mime.php index 25dcca53..18e2dd7b 100644 --- a/functions/mime.php +++ b/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 "$read

"; // 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 "type0 = $text
"; + $msg->header->type0 = strtolower($text); + if ($debug_mime) echo "type0 = ".strtolower($text)."
"; break; case 2: - $msg->header->type1 = $text; - if ($debug_mime) echo "type1 = $text
"; + $msg->header->type1 = strtolower($text); + if ($debug_mime) echo "type1 = ".strtolower($text)."
"; break; case 5: $msg->header->description = $text; if ($debug_mime) echo "description = $text
"; break; case 6: - $msg->header->encoding = $text; - if ($debug_mime) echo "encoding = $text
"; + $msg->header->encoding = strtolower($text); + if ($debug_mime) echo "encoding = ".strtolower($text)."
"; 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); diff --git a/src/compose.php b/src/compose.php index afc46522..66075229 100644 --- a/src/compose.php +++ b/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; } }