[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2019-05-10 Thread Ned Deily


Change by Ned Deily :


--
Removed message: https://bugs.python.org/msg342099

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2019-05-10 Thread Ned Deily


Ned Deily  added the comment:


New changeset f37b0cb230069481609b0bb06891b5dd26320504 by Barry Warsaw in 
branch '3.4':
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274) (#280)
https://github.com/python/cpython/commit/f37b0cb230069481609b0bb06891b5dd26320504


--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +907

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-03-24 Thread STINNER Victor

STINNER Victor added the comment:


New changeset fba79dc568030091f84110fccac4cb64c2fef020 by Victor Stinner (Barry 
Warsaw) in branch 'master':
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274)
https://github.com/python/cpython/commit/fba79dc568030091f84110fccac4cb64c2fef020


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-03-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:


New changeset f37b0cb230069481609b0bb06891b5dd26320504 by Barry Warsaw in 
branch '3.4':
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274) (#280)
https://github.com/python/cpython/commit/f37b0cb230069481609b0bb06891b5dd26320504


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-03-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:


New changeset 66b5092fac4264efdc9c508a7dd425fa9833e147 by Barry Warsaw in 
branch '3.5':
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274) (#279)
https://github.com/python/cpython/commit/66b5092fac4264efdc9c508a7dd425fa9833e147


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-03-24 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:


New changeset 0a1b656d8ce3da14f8acf947477b8e998e68ef3b by Barry Warsaw in 
branch '3.6':
bpo-25008: Deprecate smtpd and point to aiosmtpd (#274) (#278)
https://github.com/python/cpython/commit/0a1b656d8ce3da14f8acf947477b8e998e68ef3b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-03-17 Thread Larry Hastings

Changes by Larry Hastings :


--
pull_requests: +603

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-02-24 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-02-24 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
pull_requests: +250

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-02-24 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
pull_requests: +249

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-02-24 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
pull_requests: +248

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-02-24 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
pull_requests: +246

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat)

2017-02-22 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

aiosmtpd is coming along nicely:

http://aiosmtpd.readthedocs.io/en/latest/

We'll soon have a 1.0 release.  Still, I don't think it's worth pulling this 
into the stdlib.  But we could silently deprecate it and point to aiosmtpd in 
the docs.

--
assignee:  -> barry
components: +Documentation -Library (Lib)
title: Deprecate smtpd (based on deprecated asyncore/asynchat): write a new 
smtp server with asyncio -> Deprecate smtpd (based on deprecated 
asyncore/asynchat)
versions: +Python 3.7 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat): write a new smtp server with asyncio

2016-11-17 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
nosy: +giampaolo.rodola

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat): write a new smtp server with asyncio

2015-10-16 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

This has come along pretty well.  The project is managed here:

https://gitlab.com/python-smtpd-hackers/aiosmtpd

and documentation here:

http://aiosmtpd.readthedocs.org/en/latest/

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat): write a new smtp server with asyncio

2015-10-08 Thread neic

Changes by neic :


--
nosy: +neic

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat): write a new smtp server with asyncio

2015-10-04 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I'm liking RDM's port of smtpd.py.  I've done some clean ups, bug fixes, and 
added some debugging.  See this branch over on gitlab:

https://gitlab.com/python-smtpd-hackers/aiosmtpd/tree/issue25508

Try `python3 server.py` then run client.py in another terminal (it uses 
smtplib) or just telnet.

I plan to continue pursuing this approach; please comment over there.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat): write a new smtp server with asyncio

2015-09-27 Thread R. David Murray

R. David Murray added the comment:

Here is a proof of concept port of smtpd to asyncio.  Obviously I'm not 
suggesting we commit this patch (it isn't complete...the tests don't run).  
Instead I'm posting it as an outgrowth the of the sprint that was conducted 
today.  The DC team took a different tack, so I'm not submitting this as a 
patch to their repo, and since it is useful to look at the diff against 
default, it seems appropriate to post it here.

The advantage of this port is that it uses the existing smtpd protocol code, 
which is the "field tested" code.  Of course, I did have to change how the data 
is turned from bytes into lines, so I may have introduced some bugs.

As discussed, *using* an asyncio based smtpd has a different calling API than 
using the asynchat one.  However, the *pattern* is similar, so it may not be 
crazy to replace smtpd with the cleaned up version of this patch, exactly 
because the number of places this is used is relatively small and mostly in 
test code.  IMO it's a better option than deleting smtpd from the stdlib.

The code as is can be run using its CLI.  I tested it via telnet using the 
DebuggingServer and hand coding an email...for some reason I can't currently 
import smtplib (Enum errors in socket), so I didn't test it with smtplib, but 
it should work.

--
keywords: +patch
Added file: http://bugs.python.org/file40605/aiosmtpd.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd (based on deprecated asyncore/asynchat): write a new smtp server with asyncio

2015-09-18 Thread STINNER Victor

Changes by STINNER Victor :


--
title: Deprecate smtpd -> Deprecate smtpd (based on deprecated 
asyncore/asynchat): write a new smtp server with asyncio

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-11 Thread Terry J. Reedy

Terry J. Reedy added the comment:

http://nullege.com/codes/search?cq=import+smtpd
shows 135 hits.  FWIW, import+asyncore get 972.

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-07 Thread STINNER Victor

STINNER Victor added the comment:

Even if it may be possible to support asyncore/asynchat and asyncio at the same 
time, I would prefer to drop asyncore/asynchat support to simplify the code.

The problem is that the API will be very different.

asyncio has a different design. You don't instanciate a class to open a network 
connection, but you have to call "yield from loop.create_connection()" in a 
coroutine.

We might provide helper blocking functions starting the server for us and then 
running the event loop until CTRL+c is pressed (or another event to stop to 
stop the loop).

Rewriting smtpd with asyncio would allow to use it in an asyncio application. 
In 2015, I expect to see more and more applications using asyncio than 
asyncore/asynchat.

Can we modify the issue title to "Rewrite smtpd with asyncio"?

--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-07 Thread Eric V. Smith

Changes by Eric V. Smith :


--
nosy: +eric.smith

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-07 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Sep 07, 2015, at 02:26 PM, STINNER Victor wrote:

>Can we modify the issue title to "Rewrite smtpd with asyncio"?

Sure, although I'm currently thinking it's best to go third party until the
API and implementation settle down.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-06 Thread R. David Murray

R. David Murray added the comment:

I believe that smtpd is used for a *lot* of testing code (anyone who is writing 
smtp clients in python, pretty much, and probably some writing in other 
languages).  I really don't see the rationale for removing it, assuming we can 
rewrite it "in time".

On the other hand, are we really going to *remove* asyncore/asynchat?  Or is 
this a "deprecation in place" like optparse?  If the latter then I don't really 
care if the same is done to smtpd :)  If the former, why, if we've kept 
optparse?

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-05 Thread Brett Cannon

Brett Cannon added the comment:

I should mention one of the motivations behind deprecating smtpd is that no one 
should be using that module to run an SMTP server and it doesn't provide 
utility like http.server does and so we probably should drop the code to 
prevent anyone accidentally using it and not have to maintain it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-05 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Bringing in Eric V Smith's comment in
http://bugs.python.org/issue25002#msg249873 :

'''
I use smtpd.py for testing my code. But it's not such a big deal that I 
couldn't live without it. If I have some time to burn, I might convert it to 
asyncio so I can continue to use it.

'''

Bringing in R David Murray's comment in 
http://bugs.python.org/issue25002#msg249882 :

'''smtpd is used for testing smtplib.  It is also used in test_logging.  I 
would object to having it removed, but I suspect we can manage to rewrite it by 
3.8.  Maybe Eric and I can collaborate on it.
'''

--
nosy: +barry, rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-05 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, I would like to see the module live on (after conversion to asyncio).  
Doug Hellman's example at https://pymotw.com/2/smtpd/ makes for a nice 
demonstration of Python's capabilities.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-05 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Removing smtpd would definitely be a hardship for me right now, probably for 
obvious reasons.  I use it in testing frameworks, and even wrote a library 
called lazr.smtptest that is built around smtpd.  In Mailman, we have an LMTP 
server built on smtpd that implements *the* official way of getting mail into 
the system from an upstream mail server.  Mailman 3 core FWIW is Python 3.4 and 
3.5 compatible.

That all being said, I've also been thinking lately about an asyncio-based 
reimplementation of SMTP and LMTP.  asyncore/chat and smtpd are not the easiest 
modules to work with, extend, understand, or debug.  I'd be very happy to 
collaborate with folks on an asyncio-based version.  Maybe we can put that out 
as a third party module, with a long term plan on pulling it into the stdlib 
and promoting it instead of smtpd.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25008] Deprecate smtpd

2015-09-05 Thread Brett Cannon

New submission from Brett Cannon:

As mentioned in passing in issue #25002, perhaps smtpd should be deprecated or 
at least be updated to use asyncio.

--
components: Library (Lib)
messages: 249911
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Deprecate smtpd
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com