jrpfinch schreef: > I have three messages in my inbox. Why does messageCount = > gServer.select('INBOX') not just return OK and 3. See below for > examples - seems to be completely random how many threes it returns. > The documentation for imaplib seems sparse. Does anybody have any good > links? Many thanks, Jon > > messageCount = > 0 : OK > 1 : ['3'] > messageCount = > 0 : OK > 1 : ['3', '3', '3'] > messageCount = > 0 : OK > 1 : [None] > messageCount = > 0 : OK > 1 : ['3', '3']
I'm afraid I can't help you: all I can say is that it works for my. It gives consistent results each time I run it. >>> import imaplib >>> M = imaplib.IMAP4('...') >>> M.login('...', '...') ('OK', ['User logged in']) >>> M.select('INBOX') ('OK', ['740']) Always the same. Though the number changes if I receive or delete mail of course. -- If I have been able to see further, it was only because I stood on the shoulders of giants. -- Isaac Newton Roel Schroeven -- http://mail.python.org/mailman/listinfo/python-list