summaryrefslogtreecommitdiff
path: root/Lib/test/test_email/data/msg_37.txt
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-07 16:43:58 -0500
committerR David Murray <rdmurray@bitdance.com>2013-03-07 16:43:58 -0500
commitc2051f1fa112c1dc2b28d65e597eda85cb2e56ea (patch)
tree4740415dcb2c2ae56d4cbe11616cdc02922b6661 /Lib/test/test_email/data/msg_37.txt
parent9979ecb3f2a13f92284f6d1d6e419101d48ec211 (diff)
parent5ac5e0bf7238d635e4f2079d13083c61a886d9de (diff)
downloadcpython-c2051f1fa112c1dc2b28d65e597eda85cb2e56ea.tar.gz
Merge: #14645: Generator now emits correct linesep for all parts.
Previously the parts of the message retained whatever linesep they had on read, which means if the messages weren't read in univeral newline mode, the line endings could well be inconsistent. In general sending it via smtplib would result in them getting fixed, but it is better to generate them correctly to begin with. Also, the new send_message method of smtplib does not do the fixup, so that method is producing rfc-invalid output without this fix.
Diffstat (limited to 'Lib/test/test_email/data/msg_37.txt')
-rw-r--r--Lib/test/test_email/data/msg_37.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Lib/test/test_email/data/msg_37.txt b/Lib/test/test_email/data/msg_37.txt
new file mode 100644
index 0000000000..038d34a1a4
--- /dev/null
+++ b/Lib/test/test_email/data/msg_37.txt
@@ -0,0 +1,22 @@
+Content-Type: multipart/mixed; boundary=ABCDE
+
+--ABCDE
+Content-Type: text/x-one
+
+Blah
+
+--ABCDE
+--ABCDE
+Content-Type: text/x-two
+
+Blah
+
+--ABCDE
+--ABCDE
+--ABCDE
+--ABCDE
+Content-Type: text/x-two
+
+Blah
+
+--ABCDE--