R. David Murray added the comment: That does indeed appear to be a bug in smtpd.py.
Even if postfix's client mode does do an unconditional add of an extra newline, it is wrong according to the RFC, so I don't think that we'd change smtplib. Especially since we've had no other reports of the current code causing problems (the only problem case you have reported is against smtpd.py, which is a bug in smtpd.py). ---------- resolution: not a bug -> stage: resolved -> needs patch status: closed -> open title: SMTP.data(msg) function may cause the last CRLF of msg lost if msg is quoted-printable encoding. -> smtpd strips final carraige return from received message body versions: +Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25553> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com