I would like all emailed posts (meaning both interactions and digest) to be excerpts rather than full posts.
Can this be done?
Users Dani1 and tohaitrieu requested a feature to send email notifications as post excerpts rather than full posts. codinghorror noted that while a setting exists to hide content for private sites, no excerpt option existed — until neil confirmed it could be added easily. The feature was implemented via a new site setting: “post excerpts in emails” with a configurable max length neil. tohaitrieu initially struggled, thinking it required editing core code, but neil clarified it was available via update. After updating, tohaitrieu reported the first post still sent full content — but neil couldn’t reproduce the issue and asked for more details. tohaitrieu shared plugin info, but none seemed responsible. Dani1 speculated admins might always receive full posts, but neil confirmed even admin emails showed excerpts. neil also noted tohaitrieu’s email didn’t resemble standard Discourse formatting. Ultimately, tohaitrieu resolved the issue by rebooting the VPS, pulling the latest code, and rebuilding the app — confirming the feature now works as intended.
I would like all emailed posts (meaning both interactions and digest) to be excerpts rather than full posts.
Can this be done?
There is a site setting to disable email leaking any site content (replacing it with generic text) for super private sites, but that’s it.
Have you resolved this problem? I also want to send email in excerpt rather than full post but have no guide to do this.
Hiya,
no, i haven’t.
I think the only way is to edit the Email Template, remove %{message} from the Email Body, and replace it with some text.
On Sat, Aug 3, 2019 at 00:37, Dani1 via Discourse Meta meta@discoursemail.com wrote:
i’ve been thinking of just suppressing all emails and send out a (manual) weekly digest through my email service. haven’t gotten that far yet, though.
I don’t mind a setting here, is anything in place that could do this @neil? Max length of email or something?
Should be easy to add one.
Sure let’s do that if it is easy.
It means I will edit Discourse core code?
I’m a newbie.
I try and it show: cd: /var/discourse/app/views: No such file or directory
No, you can update now and you will get the new feature.
https://github.com/discourse/discourse/commit/4b9d35cd0e6d2050f8103f9b5314fe43000f5e42
Enable the new setting “post excerpts in emails”:
Wonderful!
Thank you!
Hi @neil, I update and check but First Post still send full post
@tohaitrieu What do you mean that the first post still sends the full post? Did you set the “post excerpt maxlength” to what you want? Please post a screenshot of the email if you can.
@neil: Can you check this problem?
Email sent full post content without html format so terrible.
My post have about 1000 - 2000 words and It’s not good, have no traffic to website if my user can read full post via email.
Thank you!
@tohaitrieu I can’t reproduce it. Your settings look correct. I tested emails for a new topic in a watched category, and they showed excerpts in the email. I tested mailing list mode to see if that’s what you were using, but it also only showed excerpts. You’ll need to give me more details about what you’re doing. For example, which plugins do you have installed?
@neil this is my plugin list:
Ok I don’t see anything in there that could cause it. Any other ideas?