mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
temporarily disable processing email replies to VERP
This commit is contained in:
parent
2cf4107a67
commit
a244c33023
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ module Email
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_internal
|
def process_internal
|
||||||
|
# temporarily disable processing automated replies to VERP
|
||||||
|
return if @mail.destinations.any? { |to| to[/\+verp-\h{32}@/i] }
|
||||||
|
|
||||||
raise BouncedEmailError if @mail.bounced? && !@mail.retryable?
|
raise BouncedEmailError if @mail.bounced? && !@mail.retryable?
|
||||||
raise ScreenedEmailError if ScreenedEmail.should_block?(@from_email)
|
raise ScreenedEmailError if ScreenedEmail.should_block?(@from_email)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue