From 8ec4dad9822f390a3e4a1fe7451ccc97f5a3d6de Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sat, 25 Apr 2020 20:14:40 -0700 Subject: Updates to bounce recognition. --- tests/bounces/yahoo_12.txt | 18 ++++++++++++++++++ tests/test_bounces.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 tests/bounces/yahoo_12.txt (limited to 'tests') 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), -- cgit v1.2.3