lib/tuktuk/bounce.rb in tuktuk-0.6.2 vs lib/tuktuk/bounce.rb in tuktuk-0.6.3

- old
+ new

@@ -13,10 +13,10 @@ 563, # ERR_MSG_REJECT_BLACKLIST, message has blacklisted content and thus I reject it 571 # Delivery not authorized, message refused ] def self.type(e) - if e.is_a?(Net::SMTPFatalError) and code = e.to_s[0..2] and HARD_BOUNCE_CODES.include? code.to_i + if e.is_a?(Net::SMTPFatalError) and code = e.to_s[0..2] and HARD_BOUNCE_CODES.include?(code.to_i) HardBounce.new(e) else SoftBounce.new(e) # either soft mailbox bounce, timeout or server bounce end end