]> granicus.if.org Git - python/commitdiff
bpo-35800: Deprecate smtpd.MailmanProxy (GH-11675)
authorSamuel Colvin <samcolvin@gmail.com>
Sat, 12 Oct 2019 17:24:26 +0000 (18:24 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Oct 2019 17:24:26 +0000 (10:24 -0700)
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

Doc/library/smtpd.rst
Lib/smtpd.py
Misc/ACKS
Misc/NEWS.d/next/Library/2019-01-25-17-12-17.bpo-35800.MCGJdQ.rst [new file with mode: 0644]

index 85ee8a75cf77a9a032f2b05b230b12f02d0db7e4..d84e74a8ceaaff506cfcfcc62f6985be3cf80915 100644 (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
index 8103ca9af0d7b3f2fb20a02b34182d97ef30a8e3..8f1a22e937871d691dbe6b6182a4d9e032cd3630 100755 (executable)
@@ -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)
index 71e61c3db386c1376dbcb3ca976403fe583697ca..d8e2630814a869f08fa3db9f61da8ddea3b60d5a 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -321,6 +321,7 @@ Benjamin Collar
 Jeffery Collins
 Robert Collins
 Paul Colomiets
+Samuel Colvin
 Christophe Combelles
 Geremy Condra
 Denver Coneybeare
diff --git a/Misc/NEWS.d/next/Library/2019-01-25-17-12-17.bpo-35800.MCGJdQ.rst b/Misc/NEWS.d/next/Library/2019-01-25-17-12-17.bpo-35800.MCGJdQ.rst
new file mode 100644 (file)
index 0000000..27e8d0b
--- /dev/null
@@ -0,0 +1 @@
+Deprecate ``smtpd.MailmanProxy`` ready for future removal.