-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POP3 missing support for starttls #48723
Comments
In the enclosed patch, there are four changes
|
The needed changes to documentation if the patch gets accepted |
You might split your patch into smaller patches, example:
Comments:
|
I understand the need to keep things simple, but this time the split As for the shutdown before close, it's needed to let the server know You don't usually configure maildrop servers to limit the number/rate of |
Extracts of an UNIX FAQ [1]: "i have noticed on some (mostly non-unix) operating systems though a So shutdown() is useless on most OS, but it looks like it's better to
You don't need to do that. The wrapper already calls shutdown() of the [1] http://www.developerweb.net/forum/archive/index.php/t-2940.html |
I'm reasonably sure Victor is right about the original socket being |
"lst[1:] if len(lst)>1 else []" is useless, lst[1:] alone does the You might add a real example in the capa() docstring. About poplib_02_sock_shutdown.diff: I'm not sure that poplib is the You removed self._sock, nice. |
Changed CAPA as requested: now there is a proper docstring, and the |
As for the shutdown/close comment, I think there could be cases |
There is a problem I forgot to state with test_anonlogin: |
I'm enclosing the expected-failure version of test_popnet. It's much |
How is going? Any hope for 2.7/3.2? |
Ping... Any hope for 2.7/3.2? |
3.3 beta will be published next Sunday. Any hope? Lorenzo, is your patch applicable to 3.3? |
I've refreshed the patches to apply on 3.3, and adapted the to the |
I've refreshed once more the patches, adding the implementation of the stls command in test_poplib.py. IMHO, the changes as they stand now are low risk, and could as well go into 3.3. With many thanks to Giampaolo for implementing the asynchat/asyncore pop3 server! |
Lorenzo, 3.3 is in beta mode now. No new features accepted :-(. Please, fulfill a PSF contributor agreement http://www.python.org/psf/contrib/ |
Jesús, In the meanwhile, I updated once more patches 01 and 03: 01: stealed the socket shutdown check from Antoine Pitrou's r66134 As for the "no-new-features"... I know, I know... (that's the reason why I wrote that big "in my HUMBLE opionion" ;-) |
Hello, Here are some comments about the patches:
+ except error_proto as _err: |
Updated 02 and 03 patches (mostly) in line with Antoine's review comments:
Completely right. Done.
where?
undone
Here I'm following: at :ref:`pop3-objects` in Doc/library/poplib.rst, All POP3 commands are represented by methods of the same name, in IMHO, having a single method with a name different than the underlying starttls = stls or the reverse...
Right, non need to mimick pre-SSLContext method signatures!
undone |
In
Ah, ok. Then I agree it makes sense to call it stls(). No need for an alias, IMO. |
OK, I'm uploading poplib_03_starttls_v5.diff; I only changed the Thank you for pointing at the line; I tried to run PEP-8.py on poplib.py, but failed to find the line, since I was overwhelmed by the reported pre-existing PEP-8 inconsistencies... I'm tempted to open a PEP-8 issue on poplib after we finish with stls... Thank you very much for reviewing! |
Thank you Lorenzo. Your patch lacks a couple of details, such as "versionadded" and "versionchanged" tags, but I can handle this myself. |
New changeset 79e33578dc05 by Antoine Pitrou in branch 'default': New changeset d30fd9834cec by Antoine Pitrou in branch 'default': New changeset 2329f9198d7f by Antoine Pitrou in branch 'default': |
Patches committed. Thank you very much! |
New changeset 75a146a657d9 by Antoine Pitrou in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: