commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siegfried Goeschl (JIRA)" <>
Subject [jira] Commented: (EMAIL-82) Attaching .doc files with Greek Names (as filenames) and encoding of the name is wrong
Date Wed, 14 Jul 2010 05:42:49 GMT


Siegfried Goeschl commented on EMAIL-82:

I found the problem and it is not a bug but a feature - there is a System property "mail.mime.encodefilename"
If set to "true" the property triggers an optional MIME encoding of the attachment name if
it contains non-ASCII characters which in turn violates the MIME specification. Basically
MimeUtility.encodeText(text, charset, encoding) is applied to the attachment name.

I provided a test (EmailLiveTest.testCorrectCharacterEncoding) to demonstrate the problem.

> Attaching .doc files with Greek Names (as filenames) and encoding of the name is wrong

> ---------------------------------------------------------------------------------------
>                 Key: EMAIL-82
>                 URL:
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: windows xp service pack 2
> Ibm Rational Software Development Platform
>            Reporter: chris bek
>            Assignee: Siegfried Goeschl
>            Priority: Critical
>             Fix For: 1.3
> I have a file located in my pc localy and i send it as an attachment from multipart mail..sending
and attaching works good and file can be opened from mail account..The problem is with the
filename for example the file is : "Το εγγραφό μου.doc" ("My document.doc") and
the result in attached file is something 
> like this:  ΐ±ΐ±ΑΉ± Ό±½ΔΏ.doc
> if filename is in english i dont have problems..but for my business is essential to have
attached documents with greek characters (i tried UTF-*8 as charset for multipart mail and
greek iso charset as well but the problem remains...)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message