M
Manlio Perillo
Regards.
The problem is this code:
Why line ending is '\n' and not '\r\n' ?
RFC 2822 says that the delimiter must(?) be '\r\n'.
The same problem is presente in email.Generator and email.Header (for
multiline headers).
P.S.
email.Header has a bug:
this code causes an infinite recursion:
Manlio Perillo
The problem is this code:
'subject: email bug\nfrom: Manlio Perillo\n\n'>>> import email.Message
>>> msg = email.Message.Message()
>>> msg["subject"] = "email bug"
>>> msg["from"] = "Manlio Perillo"
>>> print repr(msg.as_string())
Why line ending is '\n' and not '\r\n' ?
RFC 2822 says that the delimiter must(?) be '\r\n'.
The same problem is presente in email.Generator and email.Header (for
multiline headers).
P.S.
email.Header has a bug:
this code causes an infinite recursion:
Manlio Perillo