{"action":"created","issue":{"url":"https://api.github.com/repos/bbottema/simple-java-mail/issues/58","repository_url":"https://api.github.com/repos/bbottema/simple-java-mail","labels_url":"https://api.github.com/repos/bbottema/simple-java-mail/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/bbottema/simple-java-mail/issues/58/comments","events_url":"https://api.github.com/repos/bbottema/simple-java-mail/issues/58/events","html_url":"https://github.com/bbottema/simple-java-mail/issues/58","id":195430064,"number":58,"title":"adding support for specifying encoding for non-English attachment name ?","user":{"login":"ensean","id":12255172,"avatar_url":"https://avatars.githubusercontent.com/u/12255172?v=3","gravatar_id":"","url":"https://api.github.com/users/ensean","html_url":"https://github.com/ensean","followers_url":"https://api.github.com/users/ensean/followers","following_url":"https://api.github.com/users/ensean/following{/other_user}","gists_url":"https://api.github.com/users/ensean/gists{/gist_id}","starred_url":"https://api.github.com/users/ensean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensean/subscriptions","organizations_url":"https://api.github.com/users/ensean/orgs","repos_url":"https://api.github.com/users/ensean/repos","events_url":"https://api.github.com/users/ensean/events{/privacy}","received_events_url":"https://api.github.com/users/ensean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T03:16:13Z","updated_at":"2016-12-19T14:00:02Z","closed_at":null,"body":"I meet a problem that while using this tool to send attachments with non-English name, it seems that the receiver's mail server can not decode the attachment name correctly. Detailed info is as follows:\r\n\r\nPlease note that the base64 data of the attachments are omit\r\n\r\n- eml generated by this tool\r\n\r\n```\r\n------=_Part_0_1135323183.1481683823991\r\nContent-Type: application/octet-stream; filename=ODS\r\n簸?.docx; name=ODS\r\n簸?\r\nContent-Transfer-Encoding: base64\r\nContent-Disposition: attachment; size=0; \r\n\tfilename*=utf-8''ODS%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%BB%B4%E6%8A%A4%E8%AF%B4%E6%98%8E.docx\r\nContent-ID: <ODS\r\n簸?>\r\n\r\n------=_Part_0_1135323183.1481683823991\r\nContent-Type: application/octet-stream; filename=CP?燒?.xlsx; name=CP?燒?\r\nContent-Transfer-Encoding: base64\r\nContent-Disposition: attachment; size=0; \r\n\tfilename*=utf-8''%E6%9D%83%E9%99%90%E6%8E%A7%E5%88%B6%E5%8A%9F%E8%83%BD%E8%AF%B4%E6%98%8E.xlsx\r\nContent-ID: <CP?燒?>\r\n\r\n------=_Part_0_1135323183.1481683823991\r\nContent-Type: application/octet-stream; filename=\u0010披\u0011(?.txt; name=\u0010披\u0011(?\r\nContent-Transfer-Encoding: base64\r\nContent-Disposition: attachment; size=0; \r\n\tfilename*=utf-8''%E3%80%90%E5%BF%85%E8%AF%BB%E3%80%91%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E.txt\r\nContent-ID: <\u0010披\u0011(?>\r\n```\r\n\r\n- eml generated by the sender mail server(send mail to server by the web client of the sender's server, the receiver's server can decode the attachment correctly)\r\n\r\n\r\n```\r\n------=_Part_68043_345475145.1481684426317\r\nContent-Type: application/octet-stream;\r\n name=\"=?GBK?Q?ODS=B7=FE=CE=F1=C6=F7=CE=AC=BB=A4=CB=B5=C3=F7.docx?=\"\r\nContent-Transfer-Encoding: base64\r\nContent-Disposition: attachment;\r\n filename=\"=?GBK?Q?ODS=B7=FE=CE=F1=C6=F7=CE=AC=BB=A4=CB=B5=C3=F7.docx?=\"\r\n\r\n------=_Part_68043_345475145.1481684426317\r\nContent-Type: application/octet-stream;\r\n name=\"=?GBK?B?yKjP3r/Y1sa5psTcy7XD9y54bHN4?=\"\r\nContent-Transfer-Encoding: base64\r\nContent-Disposition: attachment;\r\n filename=\"=?GBK?B?yKjP3r/Y1sa5psTcy7XD9y54bHN4?=\"\r\n\r\n------=_Part_68043_345475145.1481684426317\r\nContent-Type: application/octet-stream;\r\n name=\"=?GBK?B?ob6x2LbBob/KudPDy7XD9y50eHQ=?=\"\r\nContent-Transfer-Encoding: base64\r\nContent-Disposition: attachment;\r\n filename=\"=?GBK?B?ob6x2LbBob/KudPDy7XD9y50eHQ=?=\"\r\n```\r\n\r\n\r\nSo, is it possible the set the encoding method for the attachment name ?\r\n"},"comment":{"url":"https://api.github.com/repos/bbottema/simple-java-mail/issues/comments/267970356","html_url":"https://github.com/bbottema/simple-java-mail/issues/58#issuecomment-267970356","issue_url":"https://api.github.com/repos/bbottema/simple-java-mail/issues/58","id":267970356,"user":{"login":"ensean","id":12255172,"avatar_url":"https://avatars.githubusercontent.com/u/12255172?v=3","gravatar_id":"","url":"https://api.github.com/users/ensean","html_url":"https://github.com/ensean","followers_url":"https://api.github.com/users/ensean/followers","following_url":"https://api.github.com/users/ensean/following{/other_user}","gists_url":"https://api.github.com/users/ensean/gists{/gist_id}","starred_url":"https://api.github.com/users/ensean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ensean/subscriptions","organizations_url":"https://api.github.com/users/ensean/orgs","repos_url":"https://api.github.com/users/ensean/repos","events_url":"https://api.github.com/users/ensean/events{/privacy}","received_events_url":"https://api.github.com/users/ensean/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T14:00:02Z","updated_at":"2016-12-19T14:00:02Z","body":"I find a work around as follows...\r\n```\r\nmail.addAttachment(MimeUtility.encodeText(attachmentName), new FileDataSource(attachmentPath))\r\n```\r\n\r\n"}}
{"actor":{"display_login":"ensean"}}