Re: gmail/poplib: quickly detecting new mail

2006-07-01 Thread Alex Martelli
LJ <[EMAIL PROTECTED]> wrote: ... > 1. is this a standard behavior of pop protocol? (to give me the same > results for any API call on a single login?) > 2. OR is this a peculiarity of gmail Definitely POP3 standard behavior, as a simple reading of the relevant RFC will show (e.g., http://www.i

Re: gmail/poplib: quickly detecting new mail

2006-07-01 Thread Jean-Paul Calderone
On 1 Jul 2006 08:29:51 -0700, LJ <[EMAIL PROTECTED]> wrote: >Hello, > >I'm trying to monitor my gmail account to know when I have obtained a >new email. It seems that once I have logged in, I should be able to >call the stat() function repeatedly to see how many messages are in my >inbox. The pro

gmail/poplib: quickly detecting new mail

2006-07-01 Thread LJ
Hello, I'm trying to monitor my gmail account to know when I have obtained a new email. It seems that once I have logged in, I should be able to call the stat() function repeatedly to see how many messages are in my inbox. The problem is that this number does not seem to update until I have logg