[New-bugs-announce] [issue12147] smtplib.send_message does not implement corectly rfc 2822

Nicolas Estibals 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)
files: send_message_rfc2822.patch
keywords: patch
messages: 136508
nosy: Nicolas.Estibals
priority: normal
severity: normal
status: open
title: smtplib.send_message does not implement corectly rfc 2822
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file22061/send_message_rfc2822.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12147>
_______________________________________


More information about the New-bugs-announce mailing list