Browse Source

Non-ascii characters caused problems with SVN function and were replaced
with a ? by SourceForge.net in your original log message, which follows:
integrated patch 403567. this allows to integrate different user functionts to search for the users imapserver. it?s 100% backward comatible. i will do some work on conf.pl and so on to make it configurable without exact source knowlegde.

centaurix 23 năm trước cách đây
mục cha
commit
eaf888e9a9
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  1. 9 1
      src/download.php

+ 9 - 1
src/download.php

@@ -139,17 +139,25 @@ if (!$filename) {
 if (strlen($filename) < 1) {
     if ($type1 == 'plain' && $type0 == 'text') {
         $suffix = 'txt';
+	$filename = $header->subject . '.txt';
     } else if ($type1 == 'richtext' && $type0 == 'text') {
         $suffix = 'rtf';
+	$filename = $header->subject . '.rtf';
     } else if ($type1 == 'postscript' && $type0 == 'application') {
         $suffix = 'ps';
+	$filename = $header->subject . '.ps';
     } else if ($type1 == 'rfc822' && $type0 == 'message') {
         $suffix = 'eml';
+	$filename = $header->subject . '.msg';
     } else {
         $suffix = $type1;
     }
 
+    if (strlen($filename) < 1) {
     $filename = "untitled$passed_ent_id.$suffix";
+    } else {
+    $filename = "$filename.$suffix";
+    }
 }
 
 /*
@@ -290,4 +298,4 @@ function DumpHeaders($type0, $type1, $filename, $force) {
         }
     }
 }
-?>
+?>