Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle delay message from Exchange and non-existing Inbox message from Office365 #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nduxbury
Copy link

Alter BounceDetectResult so it can handle delay messages from Exchange and non-existing inbox messages from Office 365. Also, added handling of unknown status codes so they don't result in an exception.

@rklec
Copy link
Contributor

rklec commented Sep 26, 2024

This looks useful, what about merging it?

Copy link
Contributor

@rklec rklec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW merged this together with #19 and #20. There were some minor merge conflicts.

master...rklec:MailBounceDetector:mergeTogether

Assert.Null(result.RemoteMta);
Assert.Equal("mail.example.com", result.ReportingMta);
Assert.Equal("[email protected]", result.FinalRecipient);
Assert.Equal("<[email protected]>", result.UndeliveredMessageId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Assert.Equal("<[email protected]>", result.UndeliveredMessageId);
Assert.Equal("[email protected]", result.UndeliveredMessageId);

Tests fail otherwise.

I fixed it in my fork: rklec@330f3ab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants