I’m finding a problem with users who’re using ProtonMail to send replies to Discourse. I believe a PR needs to be issued to GitHub - discourse/email_reply_trimmer: Library to trim replies from plain text email., however I believe it should be discussed initially and I’m not finding an existing topic for this library here on Meta.
So if we’re to submit individual issues here as I’m doing so, here’s the error I’m seeing wherein the original source email is not being properly excluded:
And here’s source of the email in the “Text” format as per the envelope icon for the post:
This is a response.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, November 16, 2019 3:45 PM, admin via SiteName <admin@domain.tld> wrote:
> [admin]
> [admin](https://domain.tld/u/admin)
> November 16
>
> Test post for testing email replies.
>
> ---------------------------------------------------------------
>
> [Visit Topic](https://domain.tld/t/test-post/201/13) or reply to this email to respond.
>
> You are receiving this because you enabled mailing list mode.
>
> To unsubscribe from these emails, [click here](https://domain./email/unsubscribe/dad35235322caad5f662345706a9e4c8bac13235bedae186dbf25a3c3d4362).
When I go into the raw format, I’m seeing that this is in Base64 Unicode:
VGhpcyBpcyBhIHJlc3BvbnNlLgoK4oCQ4oCQ4oCQ4oCQ4oCQ4oCQ4oCQIE9yaWdpbmFsIE1lc3NhZ2Ug4oCQ4oCQ4oCQ4oCQ4oCQ4oCQ4oCQCk9uIFNhdHVyZGF5LCBOb3ZlbWJlciAxNiwgMjAxOSAzOjQ1IFBNLCBhZG1pbiB2aWEgU2l0ZU5hbWUgPGFkbWluQGRvbWFpbi50bGQ+IHdyb3RlOgoKPiBbYWRtaW5dCj4gW2FkbWluXShodHRwczovL2RvbWFpbi50bGQvdS9hZG1pbikKPiBOb3ZlbWJlciAxNgo+Cj4gVGVzdCBwb3N0IGZvciB0ZXN0aW5nIGVtYWlsIHJlcGxpZXMuCj4KPiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KPgo+IFtWaXNpdCBUb3BpY10oaHR0cHM6Ly9kb21haW4udGxkL3QvdGVzdC1wb3N0LzIwMS8xMykgb3IgcmVwbHkgdG8gdGhpcyBlbWFpbCB0byByZXNwb25kLgo+Cj4gWW91IGFyZSByZWNlaXZpbmcgdGhpcyBiZWNhdXNlIHlvdSBlbmFibGVkIG1haWxpbmcgbGlzdCBtb2RlLgo+Cj4gVG8gdW5zdWJzY3JpYmUgZnJvbSB0aGVzZSBlbWFpbHMsIFtjbGljayBoZXJlXShodHRwczovL2RvbWFpbi4vZW1haWwvdW5zdWJzY3JpYmUvZGFkMzUyMzUzMjJjYWFkNWY2NjIzNDU3MDZhOWU0YzhiYWMxMzIzNWJlZGFlMTg2ZGJmMjVhM2MzZDQzNjIpLg==
Therefore something is awry with email_reply_trimmer
either not decoding this (properly) or some such strangeness…