temporarily disable processing email replies to VERP

This commit is contained in:
Régis Hanol 2016-04-29 18:30:05 +02:00
parent 2cf4107a67
commit a244c33023

View File

@ -56,6 +56,9 @@ module Email
end
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 ScreenedEmailError if ScreenedEmail.should_block?(@from_email)