New submission from Nicolas Estibals <nicolas.estib...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12147>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to