aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2020-04-25 20:14:40 -0700
committerMark Sapiro <mark@msapiro.net>2020-04-25 20:14:40 -0700
commit8ec4dad9822f390a3e4a1fe7451ccc97f5a3d6de (patch)
treefdd7c839f320085137f13262fa5a0fbfd4d30c84 /tests
parentd7ca020be472fd3cb589d3b04d85d2a5b2d05ff6 (diff)
downloadmailman2-8ec4dad9822f390a3e4a1fe7451ccc97f5a3d6de.tar.gz
mailman2-8ec4dad9822f390a3e4a1fe7451ccc97f5a3d6de.tar.xz
mailman2-8ec4dad9822f390a3e4a1fe7451ccc97f5a3d6de.zip
Updates to bounce recognition.
Diffstat (limited to '')
-rw-r--r--tests/bounces/yahoo_12.txt18
-rw-r--r--tests/test_bounces.py1
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/bounces/yahoo_12.txt b/tests/bounces/yahoo_12.txt
new file mode 100644
index 00000000..8b266c04
--- /dev/null
+++ b/tests/bounces/yahoo_12.txt
@@ -0,0 +1,18 @@
+From: MAILER-DAEMON@yahoo.com
+To: list-bounces@lists.example.org
+Message-ID: <1724157855.37526491587724620658.JavaMail.yahoo@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: MAILER-DAEMON@yahoo.com
+
+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: user@yahoo.com
+
+---Below this line is a copy of the message.
+
diff --git a/tests/test_bounces.py b/tests/test_bounces.py
index 2f814428..3ddde6b6 100644
--- a/tests/test_bounces.py
+++ b/tests/test_bounces.py
@@ -84,6 +84,7 @@ class BounceTest(unittest.TestCase):
('SimpleMatch', 'simple_41.txt', ['userx@example.com']),
('SimpleMatch', 'bounce_02.txt', ['userx@example.com']),
('SimpleMatch', 'bounce_03.txt', ['userx@example.uk']),
+ ('SimpleMatch', 'yahoo_12.txt', ['user@yahoo.com']),
# SimpleWarning
('SimpleWarning', 'simple_03.txt', Stop),
('SimpleWarning', 'simple_21.txt', Stop),