הודעות דואר נכנסות אולחו אך לא נמחקות

סיכום מבוסס בינה מלאכותית

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 :grin: ).
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) ?

always show trimmed content is not set.

Am I missing something ?
(beta6 ( 0532a5a43e ) )

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.

almost as if EmailReplyTrimmer was… oh wait, :sweat_smile: , am I supposed to do something with https://github.com/discourse/email_reply_trimmer/ ?

:partying_face: Found it (I think), it wasn’t the email_reply_trimmer lib, which is in the gemfile, but… my tests were made in private messages :sweat_smile:

Is this resolved @Benjamin_D?