diff options
author | George Claghorn <george@basecamp.com> | 2018-10-17 10:38:51 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-17 10:38:51 -0400 |
commit | 8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437 (patch) | |
tree | 040e685506501fcc5ddf185748a34d6497ab3b0e /app/models/action_mailbox/inbound_email.rb | |
parent | 47445511862a4c9979fb46889011edf585391091 (diff) | |
download | rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.tar.gz rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.tar.bz2 rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.zip |
Simplify incineration
Diffstat (limited to 'app/models/action_mailbox/inbound_email.rb')
-rw-r--r-- | app/models/action_mailbox/inbound_email.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/action_mailbox/inbound_email.rb b/app/models/action_mailbox/inbound_email.rb index f2589d7429..7d1a36b705 100644 --- a/app/models/action_mailbox/inbound_email.rb +++ b/app/models/action_mailbox/inbound_email.rb @@ -19,4 +19,8 @@ class ActionMailbox::InboundEmail < ActiveRecord::Base def source @source ||= raw_email.download end + + def processed? + delivered? || failed? || bounced? + end end |