From 5a1f7300b9dbce7cadc189ec987c55c3ea61a0a7 Mon Sep 17 00:00:00 2001
From: Barry Warsaw
Date: Fri, 24 Feb 2017 11:57:39 -0500
Subject: [PATCH 1/2] bpo-25008: Deprecate smtpd and point to aiosmtpd.
---
Doc/library/smtpd.rst | 7 +++++++
Misc/NEWS | 3 +++
2 files changed, 10 insertions(+)
diff --git a/Doc/library/smtpd.rst b/Doc/library/smtpd.rst
index e383201aab1461c..beefb34fd8116de 100644
--- a/Doc/library/smtpd.rst
+++ b/Doc/library/smtpd.rst
@@ -13,6 +13,13 @@
This module offers several classes to implement SMTP (email) servers.
+.. seealso::
+
+ The `aiosmtpd `_ 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.
diff --git a/Misc/NEWS b/Misc/NEWS
index 72d96e7ef538691..faae5f7e2a7196a 100644
--- 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.
From 82f8e86f8d74ffae0387b358389c4bf8e0c997a4 Mon Sep 17 00:00:00 2001
From: Barry Warsaw
Date: Fri, 24 Feb 2017 13:17:31 -0500
Subject: [PATCH 2/2] Simplify the aiosmtpd URL.
---
Doc/library/smtpd.rst | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Doc/library/smtpd.rst b/Doc/library/smtpd.rst
index beefb34fd8116de..85ee8a75cf77a9a 100644
--- a/Doc/library/smtpd.rst
+++ b/Doc/library/smtpd.rst
@@ -15,10 +15,9 @@ This module offers several classes to implement SMTP (email) servers.
.. seealso::
- The `aiosmtpd `_ 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.
+ The `aiosmtpd `_ 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