-
Notifications
You must be signed in to change notification settings - Fork 12
Handle delay message from Exchange and non-existing Inbox message from Office365 #8
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
Open
nduxbury
wants to merge
2
commits into
rgl:master
Choose a base branch
from
nduxbury:office365
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
MailBounceDetector.Tests/Fixtures/bounce_exchange_delay.eml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
From: Microsoft Outlook | ||
<MicrosoftExchange329e71ec88ae4615bbc36ab6ce41109e@example.com> | ||
To: <rui.lopes@example.com> | ||
Date: Tue, 7 Feb 2017 15:34:10 -0500 | ||
Content-Type: multipart/report; report-type=delivery-status; | ||
boundary="8e2836eb-d989-4301-a619-8ed4a9d1c790" | ||
X-MS-Exchange-Organization-SCL: -1 | ||
Content-Language: en-US | ||
Message-ID: <e800b571-4191-4d94-ab42-f6d340a1685f@mail.example.com> | ||
In-Reply-To: <Q8P3DY5EH0U4.ERW6TCCK5TMF3@example.com> | ||
References: <Q8P3DY5EH0U4.ERW6TCCK5TMF3@example.com> | ||
Subject: Delivery delayed:test | ||
X-MS-Exchange-Organization-AuthSource: mail.example.com | ||
X-MS-Exchange-Organization-AuthAs: Internal | ||
X-MS-Exchange-Organization-AuthMechanism: 05 | ||
MIME-Version: 1.0 | ||
|
||
--8e2836eb-d989-4301-a619-8ed4a9d1c790 | ||
Content-Type: multipart/alternative; differences=Content-Type; | ||
boundary="7a2d16cc-4d93-4390-b2e9-b0296174231b" | ||
|
||
--7a2d16cc-4d93-4390-b2e9-b0296174231b | ||
Content-Type: text/plain; charset="us-ascii" | ||
Content-Transfer-Encoding: quoted-printable | ||
|
||
Delivery is delayed to these recipients or groups: | ||
|
||
rui.lopes@example.com<mailto:rui.lopes@example.com> | ||
|
||
Subject: test | ||
|
||
This message hasn't been delivered yet. Delivery will continue to be attemp= | ||
ted. | ||
|
||
The server will keep trying to deliver this message for the next 1 days, 19= | ||
hours and 54 minutes. You'll be notified if the message can't be delivered= | ||
by that time. | ||
|
||
--7a2d16cc-4d93-4390-b2e9-b0296174231b | ||
Content-Type: text/html; charset="us-ascii" | ||
Content-Transfer-Encoding: quoted-printable | ||
|
||
<html><head> | ||
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"= | ||
></head><body> | ||
<p><b><font color=3D"#000066" size=3D"3" face=3D"Arial">Delivery is delayed= | ||
to these recipients or groups:</font></b></p> | ||
<font color=3D"#000000" size=3D"2" face=3D"Tahoma"><p><a href=3D"mailto:d5b= | ||
0b7eb-8ab7-49cc-8ae6-18be5bce78d9@example.com">d5b0b7eb-8ab7-49cc-8ae6-= | ||
18be5bce78d9@example.com</a></p> | ||
<p>Subject: test</p> | ||
<p>This message hasn't been delivered yet. Delivery will continue to be att= | ||
empted.</p> | ||
<p>The server will keep trying to deliver this message for the next 1 days,= | ||
19 hours and 54 minutes. You'll be notified if the message can't be delive= | ||
red by that time.</p> | ||
</font> | ||
</body> | ||
</html>= | ||
|
||
--7a2d16cc-4d93-4390-b2e9-b0296174231b-- | ||
|
||
--8e2836eb-d989-4301-a619-8ed4a9d1c790 | ||
Content-Type: message/delivery-status | ||
|
||
Reporting-MTA: dns;mail.example.com | ||
Received-From-MTA: dns;[127.0.0.1] | ||
Arrival-Date: Tue, 7 Feb 2017 16:29:10 +0000 | ||
|
||
Final-Recipient: rfc822;rui.lopes@example.com | ||
Action: delayed | ||
Status: 4.4.7 | ||
Diagnostic-Code: smtp;400 4.4.7 Message delayed | ||
Will-Retry-Until: Thu, 9 Feb 2017 11:29:10 -0500 | ||
|
||
|
||
--8e2836eb-d989-4301-a619-8ed4a9d1c790 | ||
Content-Type: text/rfc822-headers | ||
|
||
Received: from [127.0.0.1] (127.0.0.1) by mail.example.com | ||
(127.0.0.1) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 7 Feb 2017 | ||
11:29:10 -0500 | ||
From: Helpdesk <rui.lopes@example.com> | ||
Date: Tue, 7 Feb 2017 11:29:09 -0500 | ||
Subject: Help Desk: I-8036 - Phone not working | ||
Message-ID: <Q8P3DY5EH0U4.ERW6TCCK5TMF3@example.com> | ||
To: <rui.lopes@example.com> | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset="utf-8" | ||
Return-Path: rui.lopes@example.com | ||
X-MS-Exchange-Organization-OriginalArrivalTime: 07 Feb 2017 16:29:10.0887 | ||
(UTC) | ||
X-MS-Exchange-Forest-ArrivalHubServer: mail.example.com | ||
X-MS-Exchange-Organization-OriginalClientIPAddress: 127.0.0.1 | ||
X-MS-Exchange-Organization-OriginalServerIPAddress: 127.0.0.1 | ||
X-MS-Exchange-Organization-AuthSource: mail.example.com | ||
X-MS-Exchange-Organization-AuthAs: Internal | ||
X-MS-Exchange-Organization-AuthMechanism: 0a | ||
X-Originating-IP: [127.0.0.1] | ||
X-MS-Exchange-Organization-MessageDirectionality: Originating | ||
X-MS-Exchange-Forest-MessageScope: 00000000-0000-0000-0000-000000000000 | ||
X-MS-Exchange-Organization-MessageScope: 00000000-0000-0000-0000-000000000000 | ||
X-MS-Exchange-Organization-Cross-Premises-Headers-Processed: mail.example.com | ||
X-MS-Exchange-Organization-OriginalSize: 343 | ||
X-MS-Exchange-Organization-HygienePolicy: Standard | ||
X-MS-Exchange-Organization-Recipient-Limit-Verified: True | ||
X-MS-Exchange-Organization-Processed-By-Journaling: Journal Agent | ||
X-MS-Exchange-Organization-MessageLatencyInProgress: LSRV=mail.example.com:TOTAL=0;2017-02-07T16:29:10.448Z | ||
|
||
--8e2836eb-d989-4301-a619-8ed4a9d1c790-- |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests fail otherwise.
I fixed it in my fork: rklec@330f3ab