adamengst
(Adam C. Engst)
2018 年5 月 3 日 14:29
1
One of my readers pointed out that Discourse List-Id headers lack verbal descriptions, which would be helpful (in a small way). The short suggestion is to add descriptions in the form:
List-Id: Sitename | CategoryName <categoryslug.domain.name>
cheers… -Adam
PS: Here’s the message I got, so you can see where the guy is coming from.
Your mailing lists insert the List-Id tag into the mail header, which is nice and expected. However, they insert only the identifier without description. I get
List-ID: <article-comments.talk.tidbits.com >
List-ID: <tidbits-talk.talk.tidbits.com >
List-ID: <site-feedback.talk.tidbits.com >
Other lists include also a verbal description. For example, a few of my actual mailing lists:
List-Id: Macintosh Pascal Mailing List <mac-pascal.lists.sonic.net >
List-Id: How to use LiveCode <use-livecode.lists.runrev.com >
List-Id: MailMate Users <mailmate.lists.freron.com >
List-Id: Discussion for revIgniter <revigniter-livecodejournal.com >
List-ID: Eudora for the Mac <eudora-mac.cartel.listmoms.net >
I can set up my mail program to group the list posts by List-Id identifiers, but descriptions are much easier to see (I mean to click the correct mailing list), hence it would be great if you could have:
List-ID: TidBITS | Article Comments <article-comments.talk.tidbits.com >
List-ID: TidBITS | TidBITS Talk <tidbits-talk.talk.tidbits.com >
List-ID: TidBITS | Site Feedback <site-feedback.talk.tidbits.com >
3 个赞
Looks like a good and easy idea
committed 02:39PM - 03 May 18 UTC
https://meta.discourse.org/t/minor-feature-request-descriptions-in-list-id-heade… rs/86681
12 个赞
LeoMcA
(Leo McArdle)
2018 年5 月 4 日 10:40
3
A minor suggestion, wouldn’t #{parent_category_name} #{topic.category.name} make more sense here?
@message.header['References'] = [topic_message_id, referenced_post_message_ids].flatten.compact.uniq
end
# https://www.ietf.org/rfc/rfc2919.txt
if topic && topic.category && !topic.category.uncategorized?
list_id = "#{SiteSetting.title} | #{topic.category.name} <#{topic.category.name.downcase.tr(' ', '-')}.#{host}>"
# subcategory case
if !topic.category.parent_category_id.nil?
parent_category_name = Category.find_by(id: topic.category.parent_category_id).name
list_id = "#{SiteSetting.title} | #{topic.category.name} #{parent_category_name} <#{topic.category.name.downcase.tr(' ', '-')}.#{parent_category_name.downcase.tr(' ', '-')}.#{host}>"
end
else
list_id = "#{SiteSetting.title} <#{host}>"
end
# https://www.ietf.org/rfc/rfc3834.txt
@message.header['Precedence'] = 'list'
@message.header['List-ID'] = list_id
if topic
That way emails for (for instance) Development - Mozilla Discourse would be:
Mozilla | Add-ons Development
rather than:
Mozilla | Development Add-ons
4 个赞
gde
2021 年12 月 11 日 11:02
7
您好,
我正在根据我社区用户的需求重新提出这项功能请求。
他们希望在消息来自群组时,列表 ID 能提供更多详细信息。
我已经启用了“主题中的群组”,但这并不能完全满足我的用户。
是否有可能添加群组名称;也许是在“主题中的群组”为 true 时添加?