mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: add handle_mail admin route
you can post full email payloads to this endpoint /admin/email/handle_mail
This commit is contained in:
@ -38,6 +38,12 @@ class Admin::EmailController < Admin::AdminController
|
||||
render json: MultiJson.dump(html_content: renderer.html, text_content: renderer.text)
|
||||
end
|
||||
|
||||
def handle_mail
|
||||
params.require(:email)
|
||||
Email::Receiver.new(params[:email]).process
|
||||
render text: "email was processed"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def filter_email_logs(email_logs, params)
|
||||
|
Reference in New Issue
Block a user