Re: email package and line ending

2005-12-26 Thread Tim Roberts
Manlio Perillo <[EMAIL PROTECTED]> wrote: > >The problem is this code: > > >>> import email.Message > >>> msg = email.Message.Message() > >>> msg["subject"] = "email bug" > >>> msg["from"] = "Manlio Perillo" > >>> print repr(msg.as_string()) >'subject: email bug\nfrom: Manlio Perillo\n\n' > >Why li

email package and line ending

2005-12-23 Thread Manlio Perillo
Regards. The problem is this code: >>> import email.Message >>> msg = email.Message.Message() >>> msg["subject"] = "email bug" >>> msg["from"] = "Manlio Perillo" >>> print repr(msg.as_string()) 'subject: email bug\nfrom: Manlio Perillo\n\n' Why line ending is '\n' and not '\r\n' ? RFC 2822