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:
parent
40fcc1ea95
commit
a5e023ac20
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ module ActionMailbox::InboundEmail::Incineratable
|
||||||
private
|
private
|
||||||
# TODO: Use enum change tracking once merged into Active Support
|
# TODO: Use enum change tracking once merged into Active Support
|
||||||
def remember_to_incinerate_later
|
def remember_to_incinerate_later
|
||||||
if status_changed? && (delivered? || failed?)
|
if status_changed? && (delivered? || bounced? || failed?)
|
||||||
@incinerating_later = true
|
@incinerating_later = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,6 +13,6 @@ class ActionMailbox::InboundEmail::Incineratable::Incineration
|
||||||
end
|
end
|
||||||
|
|
||||||
def processed?
|
def processed?
|
||||||
@inbound_email.delivered? || @inbound_email.failed?
|
@inbound_email.delivered? || @inbound_email.bounced? || @inbound_email.failed?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue