Email in should strip Fwd's and Re's when creating a new topic

AI-generated summary

The discussion revolves around the desire to automatically strip email prefixes like “Fwd:” and “Re:” when creating new topics from incoming emails in Discourse. downey suggests this would improve readability and reduce manual cleanup. tobiaseigen questions the need for automation, suggesting manual editing is sufficient. lake54 supports automation to reduce admin workload. codinghorror raises technical concerns about regex complexity and localization. jeff_y notes that while users should follow email conventions, Discourse could handle the conversion, citing existing importers that already support this. JonathanShaw expects users to fail at this and believes Discourse should automate it. Lhc_fl proposes configurable settings for administrators to define which prefixes to strip and shares a plugin solution here.

As a user, I want to be able to forward an email message to Discourse to start a discussion, without having the topic include all the “FW:”, “Fwd:”, “RE:”, etc. cluttering up the topic line, so that it’s easier to read what the topic is without the useless email junk.

Saw this today when someone forwarded a message to start a discussion about a document he received. There was about 15 characters of junk that I ended up stripping out of the topic title.

3 лайка

Why not just edit the subject line before posting? Or go back later to clean up the post?

It’s something that could be done by Discourse automatically and reduce an admin’s workload (and keep things nice and tidy from the off)

Can you propose a regex here? This might be tricky with nested fwd: re: etc and how many variants? Also needs localization does it not?

Here’s a good start:

4 лайка

Я думаю, что большинство людей, пересылающих сообщение на форум, следуют правилам электронной почты, которые включают добавление префиксов «Fwd: » и «Re: » для пересылаемых сообщений и ответов. Однако контент форума использует другое соглашение — без этих префиксов. Поэтому, на мой взгляд, конвертацию должен выполнять получатель письма.

Некоторые импортеры Discourse уже поддерживают удаление этих префиксов:

3 лайка

Я бы точно ожидал, что пользователи не смогут этого сделать, и я бы также ожидал, что Discourse сделает это автоматически.

2 лайка

Последнее время у меня возникают с этим проблемы. Может, добавить в настройки сайта такие параметры, чтобы администратор мог указать, какие префиксы нужно удалять?

1 лайк

Хорошо, наконец я решил свою проблему, написав собственный плагин. Думаю, это частично решает проблему, обсуждаемую в этой теме:

1 лайк