-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visit summary graph is cached in mail client #4250
Comments
Attachment: |
Attachment: |
I was thinking this change would have gotten into the 2.0.x release but as of 2.0.2 it is not there. Image names still use the same file name and the mail client still caches them. Can this get added into the release code? |
This change has been released, see https://github.com/piwik/piwik/blob/2.0.2/plugins/ScheduledReports/API.php#L912 If it's still not working, please provide the necessary data to investigate the issue (such as the relevant mail source code fragments). |
@julien is the 'cid' the fix? where is it used in the email source? |
Removing owner from tickets. from now on, I suggest we assign tickets to ourselves for cases when we we plan to actively work on them in the coming days/weeks. let's discuss if needed during our team call. |
I can confirm the bug I could reproduce, eg. the source code is:
the image reads: cid:VisitsSummary_get and the cache buster is missing. |
The fix I committed changes the filename but not the cid indeed. At line [https://github.com/piwik/piwik/blob/2.0.2/plugins/ScheduledReports/API.php#L924] I would suggest :
html_report_body.tpl would also need to be updated. This would need to be tested on different mail clients as Iam not sure we can set arbitrary characters in the cid attribute. |
Hi, if anyone still has this issue please comment |
I am experiencing this issue. The reports are in my view empty. All e-mails from Matomo is more or less looking like this: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi foo_bar_baz,=0A=0AA request to reset the password was received fr= om |
I've noticed this behavior in the iOS mail client for a long time, and it looks like Mail.app in Mavericks may have started this "helpful" behavior as well. I get about 30-40 email reports from Piwik each week. When I scroll through them the Visits Summary graphic gets cached and is the same image in every email. Im attaching two example screenshots. It seems the mail client is caching the inline attachment.
Looking at the email itself, I see that the filename is static:
Im going to make a guess that if a random string were appended to that filename and modified in the HTML body that it would no longer have this caching issue.
The text was updated successfully, but these errors were encountered: