HTML rewriting filters (seen with clicktrack, opentrack) generate incorrect content when handling emails with attachments through Rails.
Steps to reproduce:
1. Within rails, create a mailer with a text-only template that includes file attachments (my use case had 3 csv files)
2. Send a message through that mailer with the opentrack or clicktrack apps enabled
3. The message will appear to have the text inserted twice. Order seems to be:
Normal text/plain message part
Attachment message parts
SendGrid's generated HTML message part
It looks like this should be rewritten into a multipart/alternative that contains the original text document and the sendgrid-generated document as parts.
Have confirmed that this shows as multiple copies of the same content in GMail and the iPhone mail client. Did not take the time to confirm it in other clients, but a quick look at the message organization suggests it will be a similar issue there.
I have not checked to see how this situation is handled when using Rails to generate a multipart/alternative message that includes by html and text versions of the content.
HTML rewriting filters generate incorrect messages from plain text emails with attachments
Promoted
Response
-
Hi AJones!
This is confirmed to not be working as we designed and we will definitely create a fix to be deployed in the near future. This is not particular to rails but is an issue with Multipart / mixed messages w/ attachments not being converted to HTML correctly.
Thank you for reporting this defect!
Rally Defect: DE529
= ]
-
By default, our system duplicates plaintext content to HTML for best user experience. However, this is an automated script, and is limited, and apparently doesn't handle attachments well. To turn it off, go to Global Settings
-
-
Hi AJones!
This is confirmed to not be working as we designed and we will definitely create a fix to be deployed in the near future. This is not particular to rails but is an issue with Multipart / mixed messages w/ attachments not being converted to HTML correctly.
Thank you for reporting this defect!
Rally Defect: DE529
= ] -
-
Thanks for the confirmation and quick response. In the meantime I've disabled click/open tracking through the headers api, which seems to be dealing with things just fine.
-
Loading Profile...



Twitter,
Facebook, or email.


EMPLOYEE
