I’ve finally setup reply by email for my Discourse forum, but unfortunately parsing of replies seems suboptimal and the original message is not stripped. My forum is in Italian, but that should be accounted for, at least judging by some earlier bug reports about this same issue. I’ve seen a few other topics here on Meta (and there are probably older ones as well):
I don’t use Gmail, that probably accounts for 50% of my users alone and should be covered, but I wonder if there’s a more robust way to support quirks of other email clients (e.g. mobile email clients, since replying to email from mobile is one of the use cases that Discourse wants to support, I think). Of course I can just suggest users to strip entirely the original message or leave only short quotes if they like, but … I’m sure Discourse can handle this better!
Yes, I saw the <details>-related bug but I upgrade daily to the latest version so I don’t think it affected me when testing reply via email today. Thanks for pointing this out however!
Today I tried removing the original message from a reply entirely, but it seems to miss also the signature at the bottom of the message, it’s kept as is (but that shouldn’t be language-dependent)
Since there is no standards around user signatures, there is no easy way to even get it to work for 75% of the emails.
The best solution I’ve found so far requires machine learning and lots of training samples. It gets much harder when you have to support more than one locale…
EDIT: I already added support for italian replies, but did push a new version of the gem. I just did, you should update
Oh, I was under the impression that signatures starting with “–\n” or “–
\n” were already removed by the parser (since it seems easy, but I
understand that there are 2^1231234 possible variants).
I just updated my forum and I’m replying to this message by email to see
what happens here on Meta. Thanks!
Since there is no standards around user signatures, there is no easy
way to even get it to work for 75% of the emails.
The best solution I’ve found so far
requires machine learning and lots of training samples. It gets much
harder when you have to support more than one locale…
EDIT: I already added support for italian replies, but did push a new
version of the gem. I just did, you should update