1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Incinerate after bouncing

This commit is contained in:
George Claghorn 2018-10-06 22:18:53 -04:00
parent 40fcc1ea95
commit a5e023ac20
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ module ActionMailbox::InboundEmail::Incineratable
private
# TODO: Use enum change tracking once merged into Active Support
def remember_to_incinerate_later
if status_changed? && (delivered? || failed?)
if status_changed? && (delivered? || bounced? || failed?)
@incinerating_later = true
end
end

View file

@ -13,6 +13,6 @@ class ActionMailbox::InboundEmail::Incineratable::Incineration
end
def processed?
@inbound_email.delivered? || @inbound_email.failed?
@inbound_email.delivered? || @inbound_email.bounced? || @inbound_email.failed?
end
end