------------------------------------------------------------
revno: 1842
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Sat 2020-04-25 20:14:40 -0700
message:
Updates to bounce recognition.
added:
tests/bounces/yahoo_12.txt
modified:
Mailman/Bouncers/SimpleMatch.py
NEWS
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-01-17 03:25:09 +0000
+++ Mailman/Bouncers/SimpleMatch.py 2020-04-26 03:14:40 +0000
@@ -195,6 +195,10 @@
(_c('Message could not be delivered to some recipients.'),
_c('Message headers follow'),
_c('Recipient: \[SMTP:(?P<addr>[^\s@]+@[^\s@]+)\]')),
+ # This one is from Yahoo but dosen't fit the yahoo recognizer format
+ (_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@]+)')),
# Next one goes here...
]
=== modified file 'NEWS'
--- NEWS 2020-04-26 03:12:19 +0000
+++ NEWS 2020-04-26 03:14:40 +0000
@@ -11,6 +11,10 @@
- The Spanish translation has been updated by Omar Walid Llorente.
+ Bug Fixes and other patches
+
+ - Bounce recognition for a non-compliant Yahoo format is added.
+
2.1.30 (13-Apr-2020)
New Features
=== added file 'tests/bounces/yahoo_12.txt'
--- tests/bounces/yahoo_12.txt 1970-01-01 00:00:00 +0000
+++ tests/bounces/yahoo_12.txt 2020-04-26 03:14:40 +0000
@@ -0,0 +1,18 @@
+From: [email protected]
+To: [email protected]
+Message-ID: <1724157855.37526491587724620658.javamail.ya...@mpq204.consmr.mail.bf2.yahoo.com>
+MIME-Version: 1.0
+Content-Type: text/html; charset="utf-8"
+Content-Transfer-Encoding: 7bit
+Message-ID-Hash: NMFBS7K2KRA44XW6KCW6CW6NNKCXESHM
+X-Message-ID-Hash: NMFBS7K2KRA44XW6KCW6CW6NNKCXESHM
+X-MailFrom: [email protected]
+
+I'm afraid I wasn't able to deliver the following message.
+This is a permanent error; I've given up. Sorry it didn't work out.
+
+Subject: [List] Re: Name for MP3 Folder
+To: [email protected]
+
+---Below this line is a copy of the message.
+
=== modified file 'tests/test_bounces.py'
--- tests/test_bounces.py 2018-11-28 20:03:48 +0000
+++ tests/test_bounces.py 2020-04-26 03:14:40 +0000
@@ -84,6 +84,7 @@
('SimpleMatch', 'simple_41.txt', ['[email protected]']),
('SimpleMatch', 'bounce_02.txt', ['[email protected]']),
('SimpleMatch', 'bounce_03.txt', ['[email protected]']),
+ ('SimpleMatch', 'yahoo_12.txt', ['[email protected]']),
# SimpleWarning
('SimpleWarning', 'simple_03.txt', Stop),
('SimpleWarning', 'simple_21.txt', Stop),
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org