[issue28879] smtplib send_message should add Date header if it is missing, per RFC5322
Eric Lafontaine
report at bugs.python.org
Mon Dec 19 14:02:44 EST 2016
Eric Lafontaine added the comment:
Hi all,
@David, the "Resent-" block should be added by the user and he needs to know what he's doing. Hell, I work with emails all the time and never knew about this. The Worse part of it is that I have to communicate with the IETF just to know how we can do the rules... that doesn't mean another programmer didn't interpret it wrong...
@Henning, this is my first contribution :P I've just been brain-washed by Raymond Hettinger and his beautifuls speechs. I suggest (no shame plug) you look at the first 5-6 videos of the following link if you got free time. https://www.youtube.com/playlist?list=PLRVdut2KPAguz3xcd22i_o_onnmDKj3MA
I've received his "call to arms" ; https://www.youtube.com/watch?v=-TdrFjDJn5E&list=PLRVdut2KPAguz3xcd22i_o_onnmDKj3MA&index=16
David, I said the API was awkward because of what is mention in this latest link. I really believe we ought to change it ASAP if it's possible at all and make it more like sendmail... that's only an opinion though. https://youtu.be/-TdrFjDJn5E?list=PLRVdut2KPAguz3xcd22i_o_onnmDKj3MA&t=4231
Finally, Could I know how to modify the Doc of the Python2 ?
Regards,
Eric Lafontaine
- Implement a patch for the code to add a missing "Date" field if it doesn't exist . (in review)
- Modify the documentation at the SMTPLib for the send_message to mention that it add missing date using the email.utils.formatdate (in review)
- Modify the comment of the send_message code to mention RFC 5322 in there (ideally with the section of the RFC). (in review)
- Modify the example of Python 2 to present a RFC 5322 examples
----------
Added file: http://bugs.python.org/file45969/issue_28879_V4.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28879>
_______________________________________
More information about the Python-bugs-list
mailing list