You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Cool package! I was assessing solutions for the very nasty problem of removing reply text from emails, and after researching many of the same paths others have (regexes++, a "reply above this line" indicator, etc) I stumbled across your article on Medium. Just wanted to say I love your minimalist spirit and thank you for your open source contributions.
I tested your package briefly, and thought I'd let you know that it fails to completely remove reply markup from emails sent by Gmail's web client.
HTML as sent by Gmail:
<p>This is a reply</p><p>On Thu, Dec 7, 2017 at 4:42 PM, f f <<br/><a href="mailto:recip@inbound.mydomain.us">recip@inbound.mydomain.us</a>> wrote:</p><p>> Original message<br/>></p>
HTML returned by planer.extractFromHtml():
<html><body><p> This is a reply </p> <p> On Thu, Dec 7, 2017 at 4:42 PM, f f <<br> <a href="mailto:recip@inbound.mydomain.us"> recip@inbound.mydomain.us </a></p><p><br></p></body></html>
Latest version of planer, node environment, jsdom as DOM implementation, where my call to extractFromHtml looks like:
planer.extractFromHtml(emailHtml, new JSDOM('').window.document)
Thought you might like to know. Cheers!
The text was updated successfully, but these errors were encountered:
That's odd, planer generally works quite well on gmail replies. Gmail usually places the quoted text in an element with a gmail-quote class, and removing that element usually does the trick.
It still seems to work for gmail replies in the Lever product, so I'm not sure how you were able to generate an email reply within gmail that doesn't have a gmail-quote div. If you have any more information about how to reproduce your issue, please add to this issue.
Also, thanks for the shout @alignus-matt, I'm glad someone found that blog post.
Hey! Cool package! I was assessing solutions for the very nasty problem of removing reply text from emails, and after researching many of the same paths others have (regexes++, a "reply above this line" indicator, etc) I stumbled across your article on Medium. Just wanted to say I love your minimalist spirit and thank you for your open source contributions.
I tested your package briefly, and thought I'd let you know that it fails to completely remove reply markup from emails sent by Gmail's web client.
HTML as sent by Gmail:
<p>This is a reply</p><p>On Thu, Dec 7, 2017 at 4:42 PM, f f <<br/><a href="mailto:recip@inbound.mydomain.us">recip@inbound.mydomain.us</a>> wrote:</p><p>> Original message<br/>></p>
HTML returned by planer.extractFromHtml():
<html><body><p> This is a reply </p> <p> On Thu, Dec 7, 2017 at 4:42 PM, f f <<br> <a href="mailto:recip@inbound.mydomain.us"> recip@inbound.mydomain.us </a></p><p><br></p></body></html>
Latest version of planer, node environment, jsdom as DOM implementation, where my call to extractFromHtml looks like:
planer.extractFromHtml(emailHtml, new JSDOM('').window.document)
Thought you might like to know. Cheers!
The text was updated successfully, but these errors were encountered: