------------------------------------------------------------
revno: 1863
committer: Mark Sapiro <m...@msapiro.net>
branch nick: 2.1
timestamp: Fri 2020-12-18 12:04:50 -0800
message:
  Added recognition for a non-compliant DSN from an unknown MTA.
added:
  tests/bounces/simple_44.txt
modified:
  Mailman/Bouncers/SimpleMatch.py
  tests/test_bounces.py


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Bouncers/SimpleMatch.py'
--- Mailman/Bouncers/SimpleMatch.py	2020-04-26 03:14:40 +0000
+++ Mailman/Bouncers/SimpleMatch.py	2020-12-18 20:04:50 +0000
@@ -199,6 +199,10 @@
     (_c(r'wasn\'t able to deliver the following message'),
      _c(r'---Below this line is a copy of the message.'),
      _c(r'To: (?P<addr>[^\s@]+@[^\s@]+)')),
+    # From some unknown MTA
+    (_c(r'This is a delivery failure notification message'),
+     _c(r'The problem appears to be'),
+     _c(r'-- (?P<addr>[^\s@]+@[^\s@]+)')),
     # Next one goes here...
     ]
 

=== added file 'tests/bounces/simple_44.txt'
--- tests/bounces/simple_44.txt	1970-01-01 00:00:00 +0000
+++ tests/bounces/simple_44.txt	2020-12-18 20:04:50 +0000
@@ -0,0 +1,28 @@
+Subject: [Postmaster] Email Delivery Failure
+Message-Id: <111195647-1608276241...@example.com>
+Date: Fri, 18 Dec 2020 09:24:01 +0200
+From: "Mail Delivery System" <mailer-dae...@example.com>
+To: "dns-operations" <dns-operations-boun...@example.net>
+X-Mimecast-Originator: <>
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+X-MIME-Autoconverted: from quoted-printable to 8bit by example.net id 0BI7O1sk026573
+
+This is a delivery failure notification message indicating that
+an email dns-operations-boun...@example.net addressed to email address :
+-- u...@example.com
+
+With subject Re: [dns-operations] Monitoring for impending expiration of domains? sent on the Mon, 14 Dec 2020 11:30:37 +0100 (CET)
+could not be delivered. The problem appears to be :
+-- Recipient server unavailable or busy
+
+Additional information follows :
+-- 4.4.4 Temporary server error. Please try again later ATTR5 [VE1EUR02FT049.eop-EUR02.prod.protection.outlook.com]
+
+This condition occurred after 30 attempt(s) to deliver over
+a period of 92 hour(s) and 52 minute(s).
+
+If you sent the email to multiple recipients, you will receive one
+of these messages for each one which failed delivery,  otherwise
+they have been sent.
+

=== modified file 'tests/test_bounces.py'
--- tests/test_bounces.py	2020-04-26 03:14:40 +0000
+++ tests/test_bounces.py	2020-12-18 20:04:50 +0000
@@ -82,6 +82,7 @@
         ('SimpleMatch', 'simple_38.txt', ['us...@example.com']),
         ('SimpleMatch', 'simple_39.txt', ['us...@example.ru']),
         ('SimpleMatch', 'simple_41.txt', ['us...@example.com']),
+        ('SimpleMatch', 'simple_44.txt', ['u...@example.com']),
         ('SimpleMatch', 'bounce_02.txt', ['us...@example.com']),
         ('SimpleMatch', 'bounce_03.txt', ['us...@example.uk']),
         ('SimpleMatch', 'yahoo_12.txt', ['u...@yahoo.com']),

_______________________________________________
Mailman-checkins mailing list -- mailman-checkins@python.org
To unsubscribe send an email to mailman-checkins-le...@python.org
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: arch...@jab.org

Reply via email to