On Fri, 2003-02-21 at 15:09, Andreas Aardal Hanssen wrote: > I have to ask Timo, is there any good reason to drop sequence numbers in > the IMAP world in general, or are you focusing on any situation in > particular?
I don't think they should completely be removed, but I think it should be possible to ignore them if client doesn't need them. It has mostly to do with small optimizations and "cleaness". There would be no need to allocate memory for seq_to_uid[] (or similiar) array in either client or server side. It would also mean such array wouldn't have to be updated every time messages were expunged. Actually my server doesn't use such array anyway currently, it uses a log which tracks the expunged messages so it can do "client sequence" <-> "current global sequence" lookups (global seq <-> uid is done with b-tree-like file). I think that works faster in normal conditions, but if client doesn't allow syncing the expunges and they just keep on coming, the server process keeps getting slower and eating more memory (not that much, but still). That's why I'd like to send UIDEXPUNGEs immediately to client. It would be better anyway if client could see the expunges immediately, before user would hit the message only to see it was just deleted. IDLE extension does that, but I think it's cleaner if there didn't have to be a separate state just to see the expunges.
