mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Never mark emails sent to mailing list mirror as auto-generated
This commit is contained in:
parent
abde97c5c0
commit
d7cd7e4dc7
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue