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 Curtiram

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 Curtiram

Acredito que a maioria das pessoas que encaminha uma mensagem para o fórum segue as convenções de e-mail, que incluem adicionar "Enc: " e "Re: " aos encaminhamentos e respostas. No entanto, o conteúdo do fórum utiliza uma convenção diferente, sem incluir esses prefixos. Portanto, acho que o receptor do e-mail deve realizar a conversão.

Alguns importadores do Discourse já suportam a remoção desses prefixos:

3 Curtiram

Com certeza esperaria que os usuários falhassem em fazer isso, e eu teria esperado que o Discourse fizesse automaticamente.

2 Curtiram

Tenho tido alguns problemas com isso ultimamente. Talvez adicionar algumas configurações como esta em sitesettings para permitir que o administrador defina quais prefixos devem ser removidos?

1 Curtiu

Ok, finalmente resolvi meu problema escrevendo meu próprio plugin. Acho que isso resolve parcialmente o problema neste tópico

1 Curtiu