Skip to content

A platform for community discussion. Free, open, simple.

DEV: Deprecate smtp_should_reject endpoint (#36186)

Martin Brennan8bafa881d635
diff --git a/app/controllers/admin/email_controller.rb b/app/controllers/admin/email_controller.rb
index b8a5fd290af..a6250c4a16e 100644
--- a/app/controllers/admin/email_controller.rb
+++ b/app/controllers/admin/email_controller.rb
@@ -62,6 +62,9 @@ class Admin::EmailController < Admin::AdminController
end
end
+ # TODO (martin) Remove this in 3.7.0, this endpoint has been broken for years
+ # and was used only in the public mail-receiver's fast rejection code,
+ # which is removed in https://github.com/discourse/mail-receiver/pull/33
def smtp_should_reject
params.require(:from)
params.require(:to)