bpo-35800: Deprecate smtpd.MailmanProxy (GH-11675)

Since `smtpd.MailmanProxy` is already broken, it is not formally deprecated in 3.9. It will be removed in 3.10.


https://bugs.python.org/issue35800
This commit is contained in:
Samuel Colvin 2019-10-12 18:24:26 +01:00 committed by Miss Islington (bot)
parent 19a3d87300
commit 822922af90
4 changed files with 10 additions and 0 deletions

View File

@ -148,6 +148,12 @@ MailmanProxy Objects
.. class:: MailmanProxy(localaddr, remoteaddr)
.. deprecated-removed:: 3.9 3.11
:class:`MailmanProxy` is deprecated, it depends on a ``Mailman``
module which no longer exists and therefore is already broken.
Create a new pure proxy server. Arguments are as per :class:`SMTPServer`.
Everything will be relayed to *remoteaddr*, unless local mailman configurations
knows about an address, in which case it will be handled via mailman. Note that

View File

@ -779,6 +779,8 @@ class PureProxy(SMTPServer):
class MailmanProxy(PureProxy):
def __init__(self, *args, **kwargs):
warn('MailmanProxy is deprecated and will be removed '
'in future', DeprecationWarning, 2)
if 'enable_SMTPUTF8' in kwargs and kwargs['enable_SMTPUTF8']:
raise ValueError("MailmanProxy does not support SMTPUTF8.")
super(PureProxy, self).__init__(*args, **kwargs)

View File

@ -321,6 +321,7 @@ Benjamin Collar
Jeffery Collins
Robert Collins
Paul Colomiets
Samuel Colvin
Christophe Combelles
Geremy Condra
Denver Coneybeare

View File

@ -0,0 +1 @@
Deprecate ``smtpd.MailmanProxy`` ready for future removal.