forked from whatcould/bounce-email
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
@mitio I noted some inconsistencies in the interface of the gem. I wasn't sure how you might want to handle it, if at all. I was using the following file: https://github.com/livebg/bounce_email/blob/master/test/non_bounces/tt_1234210666.txt
I would expect the behavior to be:
bounced_mail.bounced? => false
bounced_mail.type => 'Success'
bounced_mail.code => '99'
bounced_mail.reason => 'Vacation auto-reply'However, the behavior is:
bounced_mail.bounced? => false
bounced_mail.type => 'Permanent Failure'
bounced_mail.code => 'unknown'
bounced_mail.reason => 'unknown'I've started work to make it more consistent, but if you don't think we should change anything, I'll abandon the work. Please advise.
Metadata
Metadata
Assignees
Labels
No labels