Message30173
According to rfc2046, line breaks in MIME are CRLF.
However python just
uses LF like in the following example:
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunion'
msg['From'] = '[email protected]'
msg['To'] = '[email protected]'
msg.epilogue = ''
msg.attach(MIMEText('aaaaaaaaaaaaaaaaaaaaaaaa'))
print `msg.as_string()`
gives:
'Content-Type: multipart/mixed;
boundary="===============1018679223=="\nMIME-Version:
1.0\nSubject: Our
family reunion\nFrom: [email protected]\nTo:
[email protected]\n\n--===============1018679223==\nContent-Type:
text/plain;
charset="us-ascii"\nMIME-Version:
1.0\nContent-Transfer-Encoding:
7bit\n\naaaaaaaaaaaaaaaaaaaaaaaa\n--===============1018679223==--\n'
Found in version 2.3 and 2.4
|
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:43:31 | admin | link | issue1571841 messages |
| 2007-08-23 14:43:31 | admin | create | |
|