mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Never mark emails sent to mailing list mirror as auto-generated
This commit is contained in:
@@ -105,10 +105,10 @@ module Email
|
||||
|
||||
raise NoBodyDetectedError if body.blank? && attachments.empty?
|
||||
|
||||
if is_auto_generated?
|
||||
if is_auto_generated? && !sent_to_mailinglist_mirror?
|
||||
@incoming_email.update_columns(is_auto_generated: true)
|
||||
|
||||
if SiteSetting.block_auto_generated_emails? && !sent_to_mailinglist_mirror?
|
||||
if SiteSetting.block_auto_generated_emails?
|
||||
raise AutoGeneratedEmailError
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user