Skip to content

Inconsistent interface with non-bounced email #7

@saghaulor

Description

@saghaulor

@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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions