In a support thread titled ‘Incoming emails are elided but not trimmed,’ Benjamin_D reports that while reply-by-mail is working, the quoted original email content is being elided rather than trimmed — despite having trim incoming emails enabled. He initially suspects a misconfiguration or missing setup with the email_reply_trimmer library linked here, but later realizes in post 4 that the issue occurs only in private messages, as the trimming logic is intentionally bypassed there per the code at lib/email/receiver.rb#L1274-L1283. pfaffman had earlier suggested checking the raw email format, as the trimmer might not recognize the reply structure — a possibility ruled out by Benjamin’s discovery. codinghorror later asks if the issue is resolved, implying it likely is, since the behavior is intentional for private messages. The discussion highlights a nuanced behavior in Discourse’s email handling: trimming is skipped for private messages, even if the setting is enabled, leading to elision instead of removal.
I finally set up reply-by-mail (and btw, many thanks to mail-receiver and every how-to writer ).
As far as I’ve tested it, it works, but I still have a neat elided block, at the end of the generated message, that contains the email that was replied to.
I thought that trim incoming emails being set, it would have been trimmed (removed) ?
It’s most likely the case that the email has the message that it was replying to in some format that the magic “remove the replied to text” script can’t handle. I think there’s a way to see the raw message so that you can do some debugging.
What email program did you use to write the reply?
Hi Jay,
I used the Windows10 mail client, and I’ve just tried with gmail, same thing.
What puzzles me is that the part to remove is elided, so correctly identified.