Wolfram A. Kraushaar <[EMAIL PROTECTED]> said: >> >>> * Bug 97: all messages have RECENT flag in IMAP. [snip] > > Hm - to my understanding RFC 3501 says that the recent flag > of the messages can be set to 0 at the end of a successful > _ic_select with rw-permissions for the selected mailbox, > as you stated in your Bugnote 04/10/05-10:28 > > I couldn't find any reference in the RFC to your statement > in Bugnote 04/10/05-16:39 where you say it has to occur > *after* the current session. > > Doing the updates upon successful rw-SELECTs seems perfectly > RFC 3501 compliant to me.
Yeah, reading over the bugnote and hints of the RFC indicate what I think are two valid places for this: Either ic_select, where we mark a previously selected mailbox as recent or ci_cleanup (in imap4.c) upon disconnect. However, looking at the code in imap4.c, there appears to be a notification mechanism that says when recent messages have arrived. So a client keeping a connection alive with noops would see when messages arrive. This indicates to me ic_select is the right place. Paul, you've looked into this, are you any more enlightened on the issue or also kinda in the dark about how to do it right. Has anyone taken a look at any other IMAP server's code to see where they handle it? Aaron