This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: imaplib.IMAP4.select doesn't return critical data
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: pierslauder Nosy List: melicertes, pierslauder
Priority: normal Keywords:

Created on 2004-08-05 23:53 by melicertes, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg21964 - (view) Author: Charles (melicertes) Date: 2004-08-05 23:53
The .select() method of IMAP4 objects  returns the
EXISTS data, but not the more-critical UIDVALIDITY
data.  Without UIDVALIDITY, the UID command is useless.

I have a patch, but it changes the API of the .select()
method, so it's unlikely to go into mainline -- and
select() also fails to return two other data items from
the SELECT command (FLAGS and RECENT).
msg21965 - (view) Author: Piers Lauder (pierslauder) * (Python triager) Date: 2004-08-09 08:31
Logged In: YES 
user_id=196212

I think it unwise to change the API at this stage. Also,
there is a reasonable process to obtain the values you need
after the `select' call: which is to use the `response'
method, as in:
  typ, EXISTS = instance.select(...)
  if typ == 'OK':
    FLAGS = instance.response('FLAGS')
    UIDVALIDITY = instance.response('UIDVALIDITY')
    RECENT = instance.response('RECENT')
msg21966 - (view) Author: Charles (melicertes) Date: 2004-08-09 19:07
Logged In: YES 
user_id=1064824

Okay, thanks.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40698
2004-08-05 23:53:30melicertescreate