6.0.0-alpha12
6/8/25

[#3639] download attachment incorrect file name
Summary download attachment incorrect file name
Queue IMP
Queue Version 4.1
Type Bug
State Not A Bug
Priority 2. Medium
Owners Horde Developers (at)
Requester chai (at) yipintsoi (dot) com
Created 03/16/2006 (7024 days ago)
Due
Updated 10/02/2006 (6824 days ago)
Assigned 03/17/2006 (7023 days ago)
Resolved 03/18/2006 (7022 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/02/2006 05:00:51 AM felix5ng (at) yahoo (dot) com (dot) hk Comment #16 Reply to this comment

[Show Quoted Text - 26 lines]
I am sorry.

If you found the save dialog show any incorrect filename, check the

IE->Tools->Options->advance tab->always use UTF-8 in URL

is enabled


10/02/2006 04:54:59 AM felix5ng (at) yahoo (dot) com (dot) hk Comment #15 Reply to this comment
  I understand this is IE bug.

Thank you.
I found that IE doesn't accept non-ASCII URL,  form the information 
form www we should use urlencode to encode the filename.

I tested this on my system (win XP TC, Win XP Eng, Win2K TC, Win2K 
Eng, Win Me TC) for chinese filename. it's OK

However I found two functions( rawurlencode, urlencode ) in php do 
similar job, I don't known which one is best for this job.

I try both on my test, both are OK for my test filename.



I modifity the file horde/lib/Horde/Browser.php, function downloadHeaders

inside the code that special for msie



Below is the code

         /* MSIE doesn't like multiple periods in the file name. Convert

            all periods (except the last one) to underscores. */

         if ($this->isBrowser('msie')) {

             if (($pos = strrpos($filename, '.'))) {

                 $filename = strtr(substr($filename, 0, $pos), '.', 
'_') . substr($filename, $pos);

             }

             /* add the follow line  to encode the filename */

             $filename = rawurlencode($filename);

         }


03/18/2006 02:07:35 PM chai (at) yipintsoi (dot) com Comment #14 Reply to this comment
  I understand this is IE bug.



Thank you.
03/18/2006 11:29:08 AM Jan Schneider Comment #13 Reply to this comment
As I already told you twice, this is a bug in IE, not IMP.
03/18/2006 10:21:41 AM chai (at) yipintsoi (dot) com Comment #12 Reply to this comment
Firefox working fine.

Could you test with IE.
03/18/2006 10:07:52 AM chai (at) yipintsoi (dot) com Comment #11 Reply to this comment
I think bug at convertCharset.

Can you download my attachment  save to locale disk ?

You can test this issue at my server.

http://203.144.173.70/horde/imp

user: temp4@truemail.co.th

password: temp4temp4

messages number 14,15
03/18/2006 08:38:15 AM Jan Schneider Comment #10
State ⇒ Not A Bug
Reply to this comment
There's no bug in IMP then, right?
03/18/2006 02:48:53 AM chai (at) yipintsoi (dot) com Comment #9 Reply to this comment
same my result. I can not download with IE.


03/17/2006 10:03:49 AM Jan Schneider Comment #8
State ⇒
Reply to this comment
Everything works as expected here: Firefox is downloading the message 
fine, IE not, because it is broken.
03/17/2006 09:52:47 AM chai (at) yipintsoi (dot) com Comment #7
New Attachment: ????? English.txt
Reply to this comment
This is example Thai file name.
03/17/2006 09:50:26 AM chai (at) yipintsoi (dot) com Comment #6
New Attachment: 1142588306.1051.coconut,S=2403_2,S Download
Reply to this comment
I provide the example MIME file.

The subject and attachment are Thai UTF-8 encode.


03/17/2006 09:31:51 AM Jan Schneider Comment #5
State ⇒ Feedback
Reply to this comment
Please provide example message(s).
03/17/2006 02:54:43 AM chai (at) yipintsoi (dot) com Comment #4
New Attachment: Thai.JPG Download
Reply to this comment
2. Select English language

view - correct attachment file name

download - incorrect attachment file name


03/17/2006 02:53:54 AM chai (at) yipintsoi (dot) com Comment #3
New Attachment: English.JPG Download
Reply to this comment
1. Select English language

view - incorrect attachment file name

download - incorrect attachment file name


03/17/2006 02:53:47 AM chai (at) yipintsoi (dot) com Comment #2 Reply to this comment
1. Select English language

view - incorrect attachment file name

download - incorrect attachment file name


03/16/2006 08:42:37 PM Chuck Hagenbuch Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
03/16/2006 06:40:59 AM chai (at) yipintsoi (dot) com Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
New Attachment: incorrect_character.JPG Download
Queue ⇒ IMP
Summary ⇒ download attachment incorrect file name
Type ⇒ Bug
Reply to this comment
I can view the attachment file name with correct Thai character.

But incorrect charater after click download or download in zip file.

I found this problem in current  and previous version.



Regards,

Chai.

Saved Queries