[ python-Bugs-1004271 ] imaplib.IMAP4.select doesn't return critical data

SourceForge.net noreply at sourceforge.net
Mon Aug 9 21:07:31 CEST 2004


Bugs item #1004271, was opened at 2004-08-05 17:53
Message generated for change (Comment added) made by melicertes
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1004271&group_id=5470

Category: Python Library
Group: Python 2.3
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Charles (melicertes)
Assigned to: Piers Lauder (pierslauder)
Summary: imaplib.IMAP4.select doesn't return critical data

Initial Comment:
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).


----------------------------------------------------------------------

>Comment By: Charles (melicertes)
Date: 2004-08-09 13:07

Message:
Logged In: YES 
user_id=1064824

Okay, thanks.

----------------------------------------------------------------------

Comment By: Piers Lauder (pierslauder)
Date: 2004-08-09 02:31

Message:
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')


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1004271&group_id=5470


More information about the Python-bugs-list mailing list