Add tags by 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 лайка

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 лайка

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 лайка

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 лайк

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 лайков

У меня есть другое предложение по добавлению тегов через электронную почту:

email@forum.com используется для категории Без категории.
accessibility@forum.com также используется для категории Без категории, но добавляет тег Доступность в Discourse.

Кто-нибудь рассматривал такой вариант?

1 лайк

Многие системы (включая Gmail) поддерживают адреса в формате user+tag@domain.com, которые перенаправляются на user@domain.com.

Я думаю, что Discourse уже использует эту функцию для маршрутизации писем по категориям.

Мне очень нравится эта идея! Она использует тот же рабочий процесс, что и категории и группы, поэтому пользователям не нужно осваивать что-то совершенно новое.

1 лайк

Спасибо, я вижу ещё один вариант реализации:

email+tagname@forum.com, предполагая, что этот тег доступен для группы «все».

Есть ли какие-то обновления по этому вопросу?

Можем ли мы отправлять сообщения в темы с поддержкой тегов?

1 лайк

Короткий ответ: нет.

Было выдвинуто несколько предложений: от первоначального «добавить строку, начинающуюся с tags: , за которой следует список тегов через запятую» до использования формата x+tag@forum.example. Хотя мне нравится первый вариант, поскольку второй неизбежно нарушит существующие конфигурации электронной почты для групп и категорий, я также понимаю сложность работы с ошибками тегирования.

1 лайк

Как насчет использования строки темы?

Subject: Как добавить теги через электронную почту ;email,api,webhook

Всё, что находится справа от точки с запятой, представляет собой список тегов в формате CSV.

Это выглядело бы очень странно во Входящих.

Это было бы очень ненадёжно и, безусловно, не подошло бы для многих конфигураций, где + используется для группировки или категоризации.

Исходное предложение от @tobiaseigen кажется наиболее универсальным.

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

Должно быть некоторое соглашение (то есть спецификация) по игнорированию повторных использований ^tags: (например, предпочитать теги в начале писем и игнорировать цитаты для тех, кто предпочитает размещать цитаты выше ответа). В остальном предложение выглядит надёжным, насколько я могу судить.

2 лайка