Adicionar tags por email

I’ve had a request for the ability to add tags to topics when posting by email. This could work by adding a line as follows starting with tags: and then a comma separated list.

tags: tag1, tag2, tag3 

I can see potential for difficulty, e.g. because there is no autocomplete people won’t know tags that are already being used and create duplicates, but I also think it can be quite powerful and help people to indicate organization they’d like without having to log in - and in my community many people just want to stay in their email.

4 curtidas

Hi!

We (@mcwumbly and I) would really benefit from a feature like this also. Was anything ever implemented that enables tagging topics that are created via email?

Thanks!

3 curtidas

Nope, nothing was implemented regarding tag creations via incoming emails.

Is this pr-welcome material?

It’s quite risky. How do you know what tags exist? What happens if you typo a tag? What happens when a tag is specified that doesn’t exist?

Just ignore all that? No feedback?

2 curtidas

I’m with you, Jeff. My opinion has changed since posting this request back in the day. Let’s keep it simple, and let the moderators garden and fix tags etc. If people want to indicate in their message where it should go that’s fine too.

1 curtida

Here are some thoughts to address the risks that you identified:

The feature should respect that tags site settings, including “minimum trust level to create tags” If that is higher than the user’s trust level, then the tag would just get dropped if it doesn’t exist (which could be due to a typo).

If the user’s trust level allows them to create tags, then the new tag would be created (which could be a misspelling).

Yes, the chance of these errors is higher without immediate feedback, but on the other hand, this is a pretty “advanced” feature anyway, so I wouldn’t expect a huge onslaught of tagging mayhem were it to be added.

It’s a pain in the behind to implement properly (allowing for localization and some leniency with format), a feature that is impossible to discover and dealing with edge cases is hard.

That said, I don’t see why not allow the community to send through a well specified PR, cause it is kind of important for mailing list parity.

7 curtidas

I have a different suggestion for adding tags by email:

email@forum.com is used for Uncategorized
accessibility@forum.com is also used for Uncategorized but adds the tag Accessibility in Discourse

Has anyone considered this?

1 curtida

Many systems (incl. gmail) allow addresses to have the format user+tag@domain.com, routed to user@domain.com.

Eu acho que o Discourse já utiliza esse recurso para rotear e-mails por categoria.

Gostei muito dessa ideia! Ela usa o mesmo fluxo de trabalho das categorias e grupos, então não é algo completamente novo para os usuários aprenderem.

1 curtida

Obrigado, outra forma que eu poderia ver isso funcionando:

email+tagname@forum.com assumindo que a tag está disponível para o grupo everyone.

Há alguma atualização sobre isso?

Podemos enviar e-mails para tópicos com tags?

1 curtida

A resposta curta é: não.

Várias propostas foram feitas a partir da original “adicione uma linha começando com tags: seguida por uma lista separada por vírgulas de tags” para usar x+tag@forum.example. Embora eu goste da primeira, já que a segunda está fadada a quebrar as configurações existentes de e-mail de grupos e categorias, também entendo a dificuldade de ter que lidar com erros de marcação.

1 curtida

Que tal utilizar a linha de assunto?

Assunto: Como adicionar tags por e-mail ;email,api,webhook

Tudo à direita do ponto e vírgula é um CSV de tags.

Pareceria muito estranho na Caixa de Entrada.

Isso seria muito frágil e certamente não corresponderia a muitas configurações onde o + é usado para corresponder a grupos ou categorias.

A proposta original de @tobiaseigen parece ser a mais versátil.

Os limites podem ser superados fatiando a lista e mantendo apenas os primeiros mencionados.

Deveria haver algum acordo (também conhecido como especificação) sobre ignorar usos subsequentes de ^tags: (ou seja, preferir tags no início dos e-mails e ignorar citações, para aqueles de nós que preferem citar em vez de responder). Mas, de resto, a proposta parece sólida do meu ponto de vista.

2 curtidas