Consider a post with lots of content. You want to reply by email to a specific part of it, so you reply, you trim the quoted content to just the paragraph that you want to reply to and you add your reply.
In that specific case, Discourse will get rid of the quoted content and will only show your own text… thus losing important context information because when you trim the quoted content that way, it’s because you want to make it clear that you are replying to a very specific part of the initial post.
I understand that the goal is to get rid of cruft when someone careless quotes the full email to add its reply. I would suggest that you should count the length of the quoted content, if it’s not more than 10 lines or 800 characters, then you should keep it. Or maybe you should count the length of the post that the current reply refers to and if the quote is less than 50% of the length of that original post, then it should be kept.
Detailed samples of working and non-working cases
When you have multiple blocks of quoted content, all the quotes are properly kept:
On Wed, 18 Mar 2020, Jonathan Carter via Debian Discourse wrote:
> Personally, when it comes to web-based forums, I tend to use them for a
> while and then only remember I have an account on them a few years
> later.
I'm replying right now in my mail reader. You will always find limitations
in the email integration but IMO it works well enough to be usable. And
if we ever switch, I'm pretty sure that someone annoyed enough by the lack
of some feature will find a way to implement it. It's free software after
all.
> IMHO only using the e-mail interface would kind of defeat the purpose
> (you might as well use a mailing list then) since all the nice features
> that's available are exposed in the web interface.
I would expect most people to not use the email interface in general but
its existence is a requirement IMO to not segregate a part of our
community which is reluctant to work with anything else.
But when you have single block, it gets dropped:
On Wed, 18 Mar 2020, Kyle Robbertze via Debian Discourse wrote:
> Often I wish to reply to a certain piece of a comment and maintain the
> context I am replying to. How do I do that when replying to emails
> generated by Discourse? So far I have found that just leaving the
> context in, like I would in email, results in it being stripped out.
I have not had this problem so far. It has been working fine for me.
Here's for example how my current reply looks like when sent via mutt:
https://paste.debian.net/1135454/
This behavior surprised a few Debian developers that are trying out Discourse here:
And here: