diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-27 16:44:41 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2018-09-27 16:44:41 -0700 |
commit | b25948bd5092026ae70b88954acbb11b133c889c (patch) | |
tree | db34236cbb91b1b7a02528ac4fff3d6e192b1f6b /lib | |
parent | b190f0fa65b2633f96b352bb1975cd1ce379b972 (diff) | |
download | rails-b25948bd5092026ae70b88954acbb11b133c889c.tar.gz rails-b25948bd5092026ae70b88954acbb11b133c889c.tar.bz2 rails-b25948bd5092026ae70b88954acbb11b133c889c.zip |
Make an email that fails to deliver to a mailbox as bounced
Probably need a way to either provide more email on the nature of a bounce or have a separate status code for "undeliverable".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/action_mailroom/router.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/action_mailroom/router.rb b/lib/action_mailroom/router.rb index fb0b638978..29ba803e03 100644 --- a/lib/action_mailroom/router.rb +++ b/lib/action_mailroom/router.rb @@ -19,6 +19,8 @@ class ActionMailroom::Router if mailbox = match_to_mailbox(inbound_email) mailbox.receive(inbound_email) else + inbound_email.bounced! + raise RoutingError end end |