6.0.0-beta1
7/15/25

[#3065] attachment filename with localized chars becomes corrupted on forwarding
Summary attachment filename with localized chars becomes corrupted on forwarding
Queue IMP
Queue Version 4.0.4
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester ag (at) netside (dot) de
Created 11/29/2005 (7168 days ago)
Due
Updated 12/27/2005 (7140 days ago)
Assigned 11/29/2005 (7168 days ago)
Resolved 12/27/2005 (7140 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/27/2005 12:11:51 PM Jan Schneider State ⇒ Resolved
 
12/11/2005 01:29:35 AM Michael Slusarz Comment #7 Reply to this comment
I was finally able to track this down.  This should be fixed in HEAD 
and 4.1.0.
11/30/2005 08:54:45 AM ag (at) netside (dot) de Comment #6 Reply to this comment
I really think its got to do with IMPs handling of ISO-8859-15 
formatted strings.
11/30/2005 07:35:51 AM ag (at) netside (dot) de Comment #5
New Attachment: forwarded_mail.txt Download
Reply to this comment
Should i upgrade IMP ?
11/30/2005 07:35:04 AM ag (at) netside (dot) de Comment #4
New Attachment: received_mail.txt Download
Reply to this comment
These are my results (see attached files). Forgot to mention my 
version: Horde 3.0.6 and IMP H3 (4.0.4)
11/29/2005 06:16:11 PM Michael Slusarz New Attachment: message2.txt Download
 
11/29/2005 06:15:44 PM Michael Slusarz Comment #3
New Attachment: message1.txt Download
State ⇒ Feedback
Reply to this comment
Works for me using IMP HEAD and 4.1.0.  See attached files.
11/29/2005 11:26:16 AM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
11/29/2005 10:43:21 AM ag (at) netside (dot) de Comment #2
New Attachment: Umlaut äöü.txt Download
Reply to this comment
I attached a small demo file to be used as testing object. Its name 
contains the german localized umlauts äöü.



The contents of this file are 7 plaintext lines each repeating the 
following characters: - ä ö ü ? ß -

(minus-sign, ä, ö, ü, euro-sign, ß, minus-sign)



This file is a good test, because with this i discovered the inline 
display of text/plain attachments as well as the popup display of this 
attachment is faulty, too.
11/29/2005 07:22:09 AM ag (at) netside (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ attachment filename with localized chars becomes corrupted on forwarding
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Since nobody on imp.lists.horde.org seems to have (had) a similar problem

i tried to figure out what happens on forwarding an email with an attachment

whose name contains special characters - that means the filename needs to be

encoded in e.g. 'ISO-8859-15'. The source-view of the message to be forwarded

shows the filename is encoded already that way.



In "compose.php" the forwarded message is taken and completely copied

into the contents of a new message. The function 'attachFilesFromMessage'

is responsible for copying the all attachments by iterating through

every attachment and calling 'addMIMEPartAttachment' for every suitable

attachment. Within that function 'addMIMEPartAttachment' i lost track on

how the filename of the attachment is getting decoded or maybe its not

decoded what in my opinion would be wrong. Maybe this part resides in

'transferDecodeContents' but i am not sure now. Still decoding the sources of

these routines myself :)



All i know is that on sending the forwarded message the filename is

corrupted already. Looks like its encoded twice. While building the

message to be handed over to sendmail i followed the process up to the

function 'buildAllAttachments'. Inside that function the attachments

turn out to be in a construct '$this->_cache' and every filename i get

from '$part->getName(true)' is corrupted already.



Now my hot guess is that the filename needs to be decoded before being

written into that '_cache'.



Regards

Andreas

Saved Queries