# 无法为现有群组设置电子邮件输入？

**URL:** https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569
**Category:** Support
**Tags:** email-in
**Created:** [2024年六月4日 06:51 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569 "2024-06-04T06:51:30Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [2024年六月4日 06:51 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/1 "2024-06-04T06:51:30Z")

</div>

已经可以正常使用分类了，但不知为何找不到为群组设置地址的选项。

不确定这是为什么，一定是我错过了什么。这个功能需要对群组进行一些额外的配置，而对分类则不需要吗？

根据这个指南，我只看到：

> [@Discourse](#):
>
> 如果您没有看到该字段，请确保您已启用 `email_in` 站点设置。输入您要与该 `group` 关联的电子邮件地址，然后单击“Save”按钮保存您的更改。

这与分类的邮件接收器相同，`email_in` 设置已启用。

注意（编辑）：在创建新群组时有一个设置电子邮件地址的选项，但我找不到为现有默认群组设置电子邮件接收的选项。

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年六月4日 21:21 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/2 "2024-06-04T21:21:30Z")

</div>

您是否正尝试为自动群组（例如管理员）设置电子邮件收件？如果是，目前用户界面不支持此功能。

---

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [2024年六月4日 21:47 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/3 "2024-06-04T21:47:52Z")

</div>

是的，对于其中一个自动/默认组，根据指南，我认为这对于“现有组”是可能的：

> [@Discourse](#):
>
> 如果您正在编辑一个_现有组_，请点击该组的“管理”选项卡，然后从左侧菜单中点击“交互”链接。您应该会在表单底部附近看到一个“自定义入站电子邮件地址”字段：

可以创建一个新组，也许可以在本指南中添加一条说明，说明默认组无法执行此操作。

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2024年六月5日 09:47 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/4 "2024-06-05T09:47:11Z")

</div>

您可以为自动组设置它，但这需要访问 Rails 控制台和一些勇气：

> [@Allow email in for moderators, staff, and admins](https://meta.discourse.org/t/allow-email-in-for-moderators-staff-and-admins/212147/3):
>
> Well, since nobody told me that was completely stupid, I’ve gone and tested this rails command on a little used instance. And it seems to work (so far)! bangbang Use at your own risk and backup first To add an email-in address Group.where(name: "=groups.name=").update(incoming\_email: "=groups.name=@=domain=") To remove an email-in address Group.where(name: "=groups.name=").update(incoming\_email: nil)

---

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [2024年六月5日 17:08 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/5 "2024-06-05T17:08:43Z")

</div>

很高兴知道，我不明白“Rails”控制台是什么，但它是通过标准控制台访问的吗？

我没有迫切需要让它工作，因为管理员、版主和主/通用类别的默认类别的电子邮件输入都可以正常工作。

使用组而不是类别的唯一优点是电子邮件将作为 PM 发布而不是主题发布。

我猜可能有一些原因不支持默认组的电子邮件输入，但我不知道是什么原因。

---

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [2024年六月5日 22:50 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/6 "2024-06-05T22:50:07Z")

</div>

> [@Architect](#):
>
> 很高兴知道，我不明白“Rails”控制台是什么，但它是通过标准控制台访问的吗？

是的，就是这样。这个主题在解决另一个问题的同时解释了它：

> [@Rebake all posts matching a pattern](https://meta.discourse.org/t/rebake-all-posts-matching-a-pattern/48713):
>
> bookmark This guide provides instructions on how to rebake all posts in Discourse that match a specific string or regular expression, utilizing the Rails console for additional advanced options. person_raising_hand Required user level: Administrator warning Console access required Want to rebake all the posts matching a string or regular expression? Let’s get started! Accessing your site To begin, connect to your Discourse Droplet via SSH and enter the Docker container for your Disc…

> [@Architect](#):
>
> 我猜可能有一些原因导致默认组不支持电子邮件，但我不知道是什么原因。

我怀疑_曾经_有一个很好的理由，但我不确定现在是否还有。

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [2024年六月5日 23:17 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/7 "2024-06-05T23:17:24Z")

</div>

> [@nathank](#):
>
> 我怀疑这_曾经_有一个合理的理由，但我不确定现在是否还有。

默认群组的行为方式与用户或工作人员的预期并不完全一致。许多权限和设置都与这些默认（我称之为“特殊”）群组绑定，而且并不总是适合向它们发送邮件（不仅仅是 `admins` 或 `moderators`，还包括 TL0-4 和 `everyone`）。

话虽如此，我在多个网站上使用了群组和收件消息，且我的任何网站都没有默认群组用户过多到影响群组收件箱管理的情况。

因此，可能会有一项 #contribute:功能 请求，用于添加收件邮件支持，_或者_针对新群组的用户管理问题提出请求。🤔

---

<div class="post-metadata">

### Author: ![Architect](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/architect/32/520575_2.png) [@Architect](https://meta.discourse.org/u/Architect)
#### Post date: [2024年六月6日 01:12 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/8 "2024-06-06T01:12:31Z")

</div>

这对于与默认组一起使用的新功能请求可能很有用，至少对于管理员、员工和版主组来说，这样做是有意义的。

对于 TL 0 / Everyone 组拥有电子邮件接收器来说，意义不大，但可能有一些用例。

至少对于本指南来说，提及目前这仅适用于已创建的组将会有所帮助，而这从以下内容的写法来看并不清楚：

> [@Discourse](#):
>
> ## 设置组的入站电子邮件
> 
> 要为组设置入站电子邮件，请通过单击主菜单中的“groups”链接转到您的组页面，然后单击组名（_或创建一个新组_）。

这是一个 wiki 帖子，但我作为新会员在这里无法自行编辑。

不知道需要多少预算来赞助此功能的新功能开发，似乎可能并不复杂/困难，但也许最好保持现状？

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2024年七月6日 02:12 UTC](https://meta.discourse.org/t/can-t-set-email-in-for-existing-group/310569/11 "2024-07-06T02:12:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
