On Fri, 16 Jan 2004, Christof Drescher wrote: > Given a session where msn 8 has flags \Recent and \Deleted set, and a new > mail arrives (msn 9), also having \Recent set. One client is connected, but > waiting (non-IDLE), a second client issues EXPUNGE. > > Now when the first client sends its next NOOP (still has internal status 1 > RECENT), what should the server send: > C: abc NOOP > S: 9 EXISTS > S: 2 RECENT <---- should this be sent? > S: 8 EXPUNGE > S: 1 RECENT > S: abc OK NOOP completed
The "2 RECENT" is unnecessary but OK. There will be a timing race in the recent count vs. the exists count regardless; what happens is that it ends up right. With the benefit of hindsight, the EXISTS and EXPUNGE responses should have included the recent count instead of there being a separate RECENT response. The following is also good: C: abc NOOP S: 8 EXPUNGE S: 8 EXISTS S: 1 RECENT S: abc OK NOOP completed -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
