mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
REFACTOR: use same code path for handling emails via API and POP
This commit is contained in:
@@ -52,7 +52,7 @@ class Admin::EmailController < Admin::AdminController
|
||||
|
||||
def handle_mail
|
||||
params.require(:email)
|
||||
Email::Receiver.new(params[:email]).process!
|
||||
Email::Processor.process!(params[:email])
|
||||
render text: "email was processed"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user