[New-bugs-announce] [issue35788] smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more

Samuel Colvin report at bugs.python.org
Sun Jan 20 06:14:33 EST 2019


New submission from Samuel Colvin <samcolvin at gmail.com>:

smtpd.PureProxy.process_message and smtpd.MailmanProxy.process_message are defined to not receive the extra kwargs which they're called with.

They both also expect "data" to be str when it's actually bytes.

Thus they're completed broken at the moment.

I'd like to submit a PR to fix these two bugs.

There are a number of other issues/potential improvements to smtpd which are not critical but I guess should be fixed:
* no support for starttls
* use of print(..., file=DEBUGSTREAM) instead of logger.debug
* no type hints
* PureProxy's forwarding doesn't try starttls

Should I create a new issue(s) for these problems or is there some agreement that only actual bugs will be fixed in little-used modules like this?

----------
components: email
messages: 334083
nosy: barry, r.david.murray, samuelcolvin
priority: normal
severity: normal
status: open
title: smtpd.PureProxy and smtpd.MailmanProxy broken by extra kwargs, bytes and more
type: crash
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35788>
_______________________________________


More information about the New-bugs-announce mailing list