Section 6.3.1 of the RFC3501 explains the possible data items the server will return after a SELECT command is issues. You can find RFC3501 here http://www.isi.edu/in-notes/rfc3501.txt.
Try using the RECENT method to examine the "extra" data items returned by SELECT. Here's an example >>> M.response('RECENT') ('RECENT', ['0']) If all else faile, you may want to examine the imap library code to see how it parses the SELECT response data. -- http://mail.python.org/mailman/listinfo/python-list