Bugs item #1571841, was opened at 2006-10-06 01:30 Message generated for change (Settings changed) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1571841&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andy Leszczynski (andrzejl) >Assigned to: Barry A. Warsaw (bwarsaw) Summary: email module does not complay with RFC 2046: CRLF issue Initial Comment: 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]: [EMAIL PROTECTED]: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1571841&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com