diff options
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/test/test_email.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 8950e0d..280b400 100644 --- a/Lib/email/test/test_email.py +++ b/Lib/email/test/test_email.py @@ -841,6 +841,22 @@ Received: from siimage.com ([172.25.1.3]) by zima.siliconimage.com with ''') + def test_long_lines_with_different_header(self): + eq = self.ndiffAssertEqual + h = """\ +List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>, + <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe>""" + msg = Message() + msg['List'] = h + msg['List'] = Header(h, header_name='List') + eq(msg.as_string(), """\ +List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>, + <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe> +List: List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/spamassassin-talk>, + <mailto:spamassassin-talk-request@lists.sourceforge.net?subject=unsubscribe> + +""") + # Test mangling of "From " lines in the body of a message |