diff options
author | George Claghorn <george@basecamp.com> | 2018-12-03 22:09:49 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-12-03 22:11:37 -0500 |
commit | b8f2835762dc064b44da1ef552140ad610bf6afa (patch) | |
tree | 1f507f0551625bd0658652edcd7b80ad46ac838b | |
parent | 9d798ca9c038059df479233ddc4d35711826bd93 (diff) | |
download | rails-b8f2835762dc064b44da1ef552140ad610bf6afa.tar.gz rails-b8f2835762dc064b44da1ef552140ad610bf6afa.tar.bz2 rails-b8f2835762dc064b44da1ef552140ad610bf6afa.zip |
Match all valid error codes
-rw-r--r-- | lib/action_mailbox/postfix_relayer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_mailbox/postfix_relayer.rb b/lib/action_mailbox/postfix_relayer.rb index 268ca5661b..5a0eb7dca3 100644 --- a/lib/action_mailbox/postfix_relayer.rb +++ b/lib/action_mailbox/postfix_relayer.rb @@ -11,7 +11,7 @@ module ActionMailbox end def failure? - output.match?(/\A[45]\.\d\.\d /) + output.match?(/\A[45]\.\d{1,3}\.\d{1,3}(\s|\z)/) end end |