[New-bugs-announce] [issue12147] smtplib.send_message does not implement corectly rfc 2822
report at bugs.python.org
Sun May 22 09:54:41 CEST 2011
New submission from Nicolas Estibals <nicolas.estibals at gmail.com>:
smtplib.send_message permits to send messages that are in python Message representation by selecting smtp's "from" and "to" in the message headers. Most of the time the implementation is correct but if the message is bounced (Resent-* headers have to be considered) or if there is a Sender field (this one supersede the From field if present), the current implementation does not select the right addresses (not as specified in rfc 2822).
I have wrote a patch to make the method compliant. This is my first patch to python but I followed the "Lifecycle of a Patch" webpage and hope my code will be usable. Please ask me if some revision of the code is needed.
components: Library (Lib)
title: smtplib.send_message does not implement corectly rfc 2822
versions: Python 3.2
Added file: http://bugs.python.org/file22061/send_message_rfc2822.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce