[jira] [Reopened] (EMAIL-138) Czech/Slovak diacritic marks in the file name of the attached file screw whole sent email

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Reopened] (EMAIL-138) Czech/Slovak diacritic marks in the file name of the attached file screw whole sent email

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/EMAIL-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb reopened EMAIL-138:
------------------------

AFAICT, the filename should not be encoded by Commons Email.

See the Javadoc for MimeBodyPart#setFileName(String) [1]

Commons Email is a wrapper for JavaMail, so it should not be doing its own encoding. Encoding should be left to JavaMail.

I think this 'fix' needs to be reverted.

However the Commons Javadoc should be updated to point to [1]

[1] https://javamail.java.net/nonav/docs/api/javax/mail/internet/MimeBodyPart.html#setFileName-java.lang.String-

> Czech/Slovak diacritic marks in the file name of the attached file screw whole sent email
> -----------------------------------------------------------------------------------------
>
>                 Key: EMAIL-138
>                 URL: https://issues.apache.org/jira/browse/EMAIL-138
>             Project: Commons Email
>          Issue Type: Bug
>    Affects Versions: 1.3.2
>         Environment: Windows 7, JDK 7 (6 compatible).
>            Reporter: qed
>            Priority: Minor
>              Labels: diacritic
>             Fix For: 1.3.3
>
>
> Czech/Slovak diacritic marks in the file name of the attached file screw whole sent email. Email will arrive but it's content will be messy. An example of a filename which does this is "nazevřšččššě.txt". Optionally put some text in email and in file. I tried HtmlEmail.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...