Skip to content
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

Wrong part of message removed #9

Open
quentez opened this issue Nov 22, 2016 · 14 comments
Open

Wrong part of message removed #9

quentez opened this issue Nov 22, 2016 · 14 comments
Labels

Comments

@quentez
Copy link
Owner

quentez commented Nov 22, 2016

msg_4vok0e
msg_52774k

@quentez quentez added the bug label Nov 22, 2016
@evanostroski
Copy link

msg_8spziv

@evanostroski
Copy link

msg_90bufr

@evanostroski
Copy link

msg_9b6xgp

@evanostroski
Copy link

msg_9df3oc

@evanostroski
Copy link

msg_9os3va

@evanostroski
Copy link

msg_9omp0r

@evanostroski
Copy link

msg_9qd3t1

@evanostroski
Copy link

msg_9q5uqp

@xdmnl
Copy link

xdmnl commented Jun 21, 2017

msg_9vmm0p

@divmgl
Copy link

divmgl commented Jul 11, 2017

I cannot view any of these messages (except for msg_9vmm0p) in HQ.

This issue is a little more complicated than it seems at first glance. With msg_9vmm0p, the customer is using a blockquote tag in the context of a normal email message. TalonJS removes the last blockquote tag it finds in its body, which means that if the customer supplies a blockquote tag in a normal email message, it will get stripped.

The issue then becomes how do we know when a blockquote tag should be removed? After looking at the W3 conventions for email threading, it's clear that blockquote tags that have a cite attribute should be considered as containing the body of a threaded email, but I can't find any examples of emails in Front where blockquote tags have a cite attribute.

When quoting a message during a reply/forward, it is recommended that the text be encapsulated with BLOCKQUOTE elements, with a CITE attribute identifying the message being quoted, and optionally a CLASS attribute defining default style information. BLOCKQUOTEs explicitly authored by the user should not have an CITE, or should have a CITE pointing to the current message, so that they can be distinguished from message excerpts.

With Gmail things are a little bit different. Gmail adds the gmail_quote class to blockquote tags and TalonJS is removing all instances of it that it finds, even if it's supplied by the user. Technically, we should look for gmail_extra classes, as it looks like threaded emails are contained inside of a node with the gmail_extra class.

cc @quentez

@divmgl
Copy link

divmgl commented Jul 13, 2017

Hey @evanostroski, when possible please grant me access to the conversations you've left on this thread

@jboga
Copy link

jboga commented Nov 9, 2017

Front conversation from customer: cnv_a0ne9d so we can reply to him when it's fixed.
Messages with error: msg_k92qq1, msg_kdc81l, msg_k9jb09

@eramdam
Copy link

eramdam commented Jan 22, 2018

msg_x90xoh image at the beginning of the message being thought as part of the quote

@xdmnl
Copy link

xdmnl commented Apr 27, 2018

msg_1aqt8ll nested quotes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants