]> granicus.if.org Git - python/commitdiff
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274)
authorBarry Warsaw <barry@python.org>
Fri, 24 Feb 2017 19:05:59 +0000 (14:05 -0500)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 24 Feb 2017 19:05:59 +0000 (20:05 +0100)
* bpo-25008: Deprecate smtpd and point to aiosmtpd.

* Simplify the aiosmtpd URL.

Doc/library/smtpd.rst
Misc/NEWS

index e383201aab1461c597e7d0ba0ec05e5d738aa4a8..85ee8a75cf77a9a032f2b05b230b12f02d0db7e4 100644 (file)
 
 This module offers several classes to implement SMTP (email) servers.
 
+.. seealso::
+
+    The `aiosmtpd <http://aiosmtpd.readthedocs.io/>`_ package is a recommended
+    replacement for this module.  It is based on :mod:`asyncio` and provides a
+    more straightforward API.  :mod:`smtpd` should be considered deprecated.
+
 Several server implementations are present; one is a generic
 do-nothing implementation, which can be overridden, while the other two offer
 specific mail-sending strategies.
index 72d96e7ef5386918d3f32144313c4ff0761f4d89..faae5f7e2a7196a479c342e0514a779b1220930f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -735,6 +735,9 @@ C API
 Documentation
 -------------
 
+- bpo-25008: Document smtpd.py as effectively deprecated and add a pointer to
+  aiosmtpd, a third-party asyncio-based replacement.
+
 - Issue #26355: Add canonical header link on each page to corresponding major
   version of the documentation. Patch by Matthias Bussonnier.