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

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 个赞

我最近在这方面遇到了一些麻烦。也许可以在 sitesettings 中添加一些类似这样的设置,允许管理员设置要删除哪些前缀?

1 个赞

好的,我终于通过编写自己的插件解决了我的问题。我认为这部分解决了该主题中的问题:

1 个赞