Skip to content

Not all reply markup removed from emails generated by Gmail #5

@alignus-matt

Description

@alignus-matt

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 &lt;<br/><a href="mailto:recip@inbound.mydomain.us">recip@inbound.mydomain.us</a>&gt; wrote:</p><p>&gt; Original message<br/>&gt;</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 &lt;<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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions