`smtpd.SMTPServer` takes argument `remoteaddr`, however this is only used in subclass `smtpd.DebuggingServer`. Would anyone object to a patch which removes `remoteaddr` from `smtpd.SMTPServer.__init__` and places it into `smtpd.DebuggingServer.__init__` instead? Naturally this would be backwards incompatible
We won't make such a backward-incompatible change. Because subclassing is how you extend SMTPServer, it's likely to be used by other derived classes, not in the standard library. I could see some argument for making it optional and default to None, but that's about the extent of what I would support. PS: It's used in PureProxy, not DebuggingServer (at least in 3.6, where I checked).
I'm closing this as won't fix simce smtpd.py is deprecated and likely won't see any future improvements. Please take a look at aiosmtpd as a much better third party replacement.
History
Date
User
Action
Args
2022-04-11 14:58:25
admin
set
github: 70224
2018-01-10 00:50:19
barry
set
status: open -> closedresolution: wont fixmessages: + stage: resolved