The discussion revolves around protecting members from accidentally sharing their email addresses when replying to private messages (PMs) via email. A user michellefs reports that a recipient replied directly from their email provider, exposing the sender’s email address in the full email thread. pfaffman questions whether reply-by-mail is configured and if the notification email matches the community’s address. tobiaseigen explains this is a longstanding issue with no easy fix, as email clients handle email addresses differently, and suggests obfuscating emails in PMs, though this could interfere with legitimate email discussions. RGJ investigates the technical cause, noting that trimmed content is always shown in PMs, even when the always_show_trimmed_content setting is off. zogstrip acknowledges the issue and supports a PR to allow admins to disable trimmed content entirely, proposing a new site setting with options: always, never, and private messages. RGJ suggests migrating false values to never for safety, and zogstrip agrees with the improved setting. ToddZ asks about the status of this proposed change, indicating it may have been delayed or dropped.
This is a longstanding issue and there’s not much that can be done about it.. the only way to not share your email address when sending a PM by email is to remove it before sending your reply. Different email clients handle this in different ways. In gmail the email address of the person replying is not included here but in other clients it may well be.
I guess one thing we could do is obfuscate any emails shared via PM.. but that would potentially cause problems in those cases when you are trying to talk to someone about email addresses!
# only add elided part in messages
if options[:elided].present? && (SiteSetting.always_show_trimmed_content || is_private_message)
options[:raw] << Email::Receiver.elided_html(options[:elided])
options[:elided] = ""
end
My question is:
what is the reasoning behind this being “always on” for PM’s? @zogstrip do you know?
and would it be a possibility to change this so admins would have the option to never show the trimmed content (and deny access to the “raw” email by clicking the envelope)? It’s pretty easy from a technical point of view so I’m not sure why this is not the case already.
I guess I wanted to keep the old behaviour but not sure it makes sense anymore with this setting. It’s a balance, on one hand you can leak email addresses, on the other hand the trimmer can sometimes remove important content.
I think that’s fine, but the trimmer isn’t 100% safe when it comes to “not leaking email address”.
Yes, me too. Next and hopefully last question: should we migrate a false value for always show trimmed content to private messages or to never. My idea would be to stay on the safe side and migrate it to never.