mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 04:18:27 +08:00
FEATURE: Show SMTP response on admin email sent list and rearrange columns (#17143)
Follow up to 4d3c1ceb44b87d3bcb9c5eb2472d86b0cd2b2b0b, this commit shows the SMTP response in the admin email sent list and also moves the topic/post link into a new column. Reply key is now in its own column.
This commit is contained in:
@ -240,6 +240,11 @@ class Admin::EmailController < Admin::AdminController
|
||||
logs = logs.where("users.username ILIKE ?", "%#{params[:user]}%") if params[:user].present?
|
||||
logs = logs.where("#{table_name}.to_address ILIKE ?", "%#{params[:address]}%") if params[:address].present?
|
||||
logs = logs.where("#{table_name}.email_type ILIKE ?", "%#{params[:type]}%") if params[:type].present?
|
||||
|
||||
if table_name == "email_logs" && params[:smtp_transaction_response].present?
|
||||
logs = logs.where("#{table_name}.smtp_transaction_response ILIKE ?", "%#{params[:smtp_transaction_response]}%")
|
||||
end
|
||||
|
||||
logs
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user