You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Vít Rozkovec (JIRA)" <ji...@apache.org> on 2019/03/25 10:48:00 UTC
[jira] [Commented] (EMAIL-138) Czech/Slovak diacritic marks in the
file name of the attached file screw whole sent email
[ https://issues.apache.org/jira/browse/EMAIL-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16800571#comment-16800571 ]
Vít Rozkovec commented on EMAIL-138:
------------------------------------
Hi, any news on this? Had same problem again, attachment name was encoded wrongly if it contained diacritics, and it was required to use this hack again:
ImageHtmlEmail email;
//attach file
email.attach(new FileDataSource(file, filename, name);
//get container by reflection
MimeMultipart mp = (MimeMultipart)PropertyResolver.getValue("container", email);
//set original, unencoded filename - it will be encoded corectly by Java mail
mp.getBodyPart(mp.getCount() - 1).setFileName(filename);
> 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
>
> Attachments: Gmail attachments.png
>
>
> 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
(v7.6.3#76005)