@bwagenseil opened this Issue on January 20th 2016

The Filename of the attached report file for a report over a period (weekly, monthly, etc) contains a invalid character (en dash / u+2013), which causes some mail clients aren't able to open the mail / attachment.

The filename must built following the rules of the RFC 5987 to allow characters which aren't in ASCII or ISO-8859-1.

Be aware that the filename is identical to the subject of the mail plus the file extension. I did a quick fix changing all en dashes in ./plugins/Intl/lang/de.json (for my use only in german) into dash inside of ASCII code table.

@tsteur commented on January 20th 2016 Member

Do you mean the attachments in sent emails via a scheduled report contain invalid characters?

@bwagenseil commented on January 20th 2016

No, the attachments themselves are fine. I mean the filename of the attachment in the header of the mime body. See following part of source code of a email:

Content-Type: application/pdf
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="Bericht XXXX - Woche 4.–10. Januar 2016.pdf"

@mattab commented on January 26th 2016 Member

@bwagenseil could you try to apply this patch: https://patch-diff.githubusercontent.com/raw/piwik/piwik/pull/9632.patch (you only need to patch the changes to core/Mail.php) and see if it fixes the issue? if it does not fix the issue please let us know as fast as possible so we may have a chance to fix it in 2.16.0 due in next few days

@bwagenseil commented on January 27th 2016

Many thanks for the quick fix and the patch works fine so far.

@mattab commented on January 27th 2016 Member

That's great news @bwagenseil thanks for letting us know

This Issue was closed on January 30th 2016
Powered by GitHub Issue Mirror