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

2018-07-19 Thread STINNER Victor


STINNER Victor  added the comment:

See also bpo-33327: Add a method to move messages to IMAPlib.

--
nosy: +vstinner

___
Python tracker 

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



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

2018-04-21 Thread Matej Cepl

Matej Cepl  added the comment:

Well, and would it be too much to refresh capabilities attribute in the end of 
login method?

--
nosy: +mcepl

___
Python tracker 

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



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

2014-12-30 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



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

2013-09-04 Thread R. David Murray

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 

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



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

2013-09-04 Thread Steven Murdoch

New submission from Steven Murdoch:

When an IMAP server is behind a proxy, the proxy's capabilities may differ from 
that of the actual IMAP server. However, in Python imaplib, the client will 
ignore any updates to available capabilities in the response to the LOGIN 
command (see rfc3501, section 6.2.3). As a result, imaplib will incorrectly 
assume that certain features are not available (including the IDLE patch in 
issue 11245, and as implemented in getmail 4.43.0). imaplib should refresh its 
capability list either based on the result of the login command or by 
explicitly sending a CAPABILITY command following login.

--
components: Library (Lib)
messages: 196920
nosy: sjmurdoch
priority: normal
severity: normal
status: open
title: In imaplib, cached capabilities may be out of date after login
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 
3.4, Python 3.5

___
Python tracker 

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