On Feb 13, 2017, at 2:20 PM, John C Klensin <john-ietf@xxxxxxx> wrote:
Indeed, but then what you are saying is that replicating the IMAP data model is _not_ necessary, which is my point. If you think of the data store of email messages as a single relation, with something like a message ID as the key, then it's easy to synchronize with the server: you just make sure that your copy of the relation has the intended subset of all messages in the relation, and it's very easy to compare to see whether this is the case. If, on the other hand, you have N relations, each of which is a mailbox, then synchronizing becomes a process of iterating across the set of all relations, synchronizing each one. When you describe it using the relational model, I think it's pretty obvious why you want the single-relation model, and not the multiple-relation model. |