firestorm icon indicating copy to clipboard operation
firestorm copied to clipboard

Strip out quoted part of email

Open Trevoke opened this issue 8 years ago • 4 comments
trafficstars

Right now the reply-by-email looks like this:

image

It would be great to strip out the pre-existing content and only post the body of the new email.

Trevoke avatar Mar 16 '17 19:03 Trevoke

discussion: how do we want to do that? Since sendgrid decorated the links, I can't just do a 'replace the body of the previous email with a blank string'. Is this something where we accrete a lot of knowledge of how various email clients handle these? How do we avoid false positives? Etc.

I think step 1 would be to get a few examples into a test suite that's marked pending but shows what we expect to happen. I think it's worse if someone replies inline or doesn't top-post, which is how we want people to operate on a mailing list. sigh. Surely there's plenty of prior art here

knewter avatar Mar 16 '17 19:03 knewter

Is it just me or is this done?

image

Trevoke avatar Apr 04 '17 21:04 Trevoke

reply to it to post to the thread. nope

knewter avatar Apr 05 '17 16:04 knewter

Existing quora thread on this problem: https://www.quora.com/How-can-I-programmatically-remove-quoted-replies-from-emails - one python library and one google paper on the issue

https://github.com/closeio/quotequail https://www.google.com/patents/US7222299

knewter avatar Apr 14 '17 18:04 knewter