Re: Force IMAP server to refresh message flags?
Mark Crispin <[email protected]>
| Newsgroups | gmane.mail.imap.uw.c-client |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 17 Dec 2009, Timo Sirainen wrote: > On Thu, 2009-12-17 at 10:22 -0800, Mark Crispin wrote: >> No server "caches the flags" as you describe. If the mail store in the >> server supports multiple simultaneous sessions to the same mailbox (e.g., >> mix and mbx formats in UW), then flags are updated immediately. > Well, not necessarily immediately, at least not all servers. A NOOP > command should refresh flags and other things with most servers. A server that requires use of the NOOP command to synchronize is broken. A NOOP command MUST NOT do anything special. It's a no-op. Its only purpose is to cycle the server engine if otherwise has nothing to do. Any server refresh operations MUST be done on every command. A client that uses the IDLE command has no reason to use the NOOP command, ever. > Hmm. Dovecot's current behavior is that doing a FETCH FLAGS just after > its flags had changed in another session first returns one FETCH FLAGS > with the old flags (the FETCH reply), then another FETCH FLAGS with the > updated flags (after it noticed the changes). That's OK. It's in the same set of responses, isn't it? The later flags response overrides the former one. -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote. _______________________________________________ Imap-uw mailing list [email protected] http://mailman2.u.washington.edu/mailman/listinfo/imap-uw