未解释的电子邮件::接收者::无效帖子错误

我们有测试来确保 Discourse 可以接收用于镜像邮件列表的只读分类的邮件:

为了支持这一点,发送到邮件列表镜像的帖子会绕过一些检查:

    def create_post(options = {})
      …
      if sent_to_mailinglist_mirror?
        options[:skip_validations] = true
        options[:skip_guardian] = true
      else
        options[:email_spam] = is_spam?
        options[:first_post_checks] = true if is_spam?
        options[:email_auth_res_action] = auth_res_action
      end
    def sent_to_mailinglist_mirror?
      @sent_to_mailinglist_mirror ||=
        begin
          destinations.each do |destination|
            return true if destination.is_a?(Category) && destination.mailinglist_mirror?
          end

          false
        end
    end

我猜测,您的设置中可能存在某种情况,导致邮件列表镜像的这一事实未能被检测到?请注意,要绕过这些检查,邮件必须发送到分类的电子邮件地址,而不是站点的 reply_by_email_address

1 个赞