mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FEATURE: new 'raw email' modal when listing rejected emails
This commit is contained in:
@ -51,6 +51,12 @@ class Admin::EmailController < Admin::AdminController
|
||||
render text: "email was processed"
|
||||
end
|
||||
|
||||
def raw_email
|
||||
params.require(:id)
|
||||
incoming_email = IncomingEmail.find(params[:id].to_i)
|
||||
render json: { raw_email: incoming_email.raw }
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def filter_email_logs(email_logs, params)
|
||||
|
Reference in New Issue
Block a user