[issue18921] In imaplib, cached capabilities may be out of date after login

R. David Murray report at bugs.python.org
Wed Sep 4 17:17:11 CEST 2013


R. David Murray added the comment:

I agree that this would be a good idea, but it is not a bug in the current implementation.  The only place imaplib itself uses the cached capabilities is *before* login, in the starttls method, and there it refreshes it after starttls succeeds.

Although it isn't documented any more than the 'capabilities' attribute is (and therefor neither are part of the public API currently), you can call the capability command yourself if you need the refreshed capabilities in your own code.

Good catch on the bug in the IDLE patch, though.

----------
nosy: +r.david.murray
stage:  -> needs patch
type: behavior -> enhancement
versions:  -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18921>
_______________________________________


More information about the Python-bugs-list mailing list