Commit a34b6a63 authored by Alexandre Boeglin's avatar Alexandre Boeglin

added ".txt" extensions to attached test reports for MUAs that do not handle

MIME correctly.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11622 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2ffddc46
...@@ -64,11 +64,11 @@ file_content = file( ...@@ -64,11 +64,11 @@ file_content = file(
mime_text = MIMEText(test_msg) mime_text = MIMEText(test_msg)
mime_text.add_header('Content-Disposition', 'attachment', mime_text.add_header('Content-Disposition', 'attachment',
filename='test_output') filename='test_output.txt')
msg.attach(mime_text) msg.attach(mime_text)
mime_text = MIMEText(file_content) mime_text = MIMEText(file_content)
mime_text.add_header('Content-Disposition', 'attachment', mime_text.add_header('Content-Disposition', 'attachment',
filename='test_full_output') filename='test_full_output.txt')
msg.attach(mime_text) msg.attach(mime_text)
# Send the email via our own SMTP server. # Send the email via our own SMTP server.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment