Open Bug 2093129 Opened 8 days ago

[panorama] Persist nsIMsgOfflineImapOperations in PerFolderDatabase

Categories

(MailNews Core :: Database, task)

task

Tracking

(Not tracked)

162 Branch

People

(Reporter: benc, Unassigned)

References

(Blocks 1 open bug)

Details

Bug 2089447 gets us in-memory tracking of IMAP offline operations. But to get to feature-parity with the legacy database we need these to live in the database and to survive app restarts.

There is complication due to the fact that the offline operations are indexed on the message they refer to - the nsMsgKey is used as the primary key.
But some operations have no message associated with them - operations which denote "delete everything in the folder", or "a message has been removed from this folder", for example.
The existing code allocates "fake" nsMsgKeys via nsIMsgDatabase.nextFakeOfflineMsgKey and uses these instead as the primary key for the offline op.
With panorama, we could either continue with this hack, or see if we can massage the nsIMsgDatabase and nsIMsgOfflineImapOperation interfaces into something more elegant - the existence of .nextFakeOfflineMsgKey already suggests that the interfaces are badly-suited, even before considering Panorama support.

So we'll have to think about this during any offline-operations persistence work.

You need to log in before you can comment on or make changes to this bug.