[PATCH 3/3] Revamp Syncing strategy.

Johannes Stezenbach js at sig21.net
Thu Jan 20 14:49:16 GMT 2011


On Thu, Jan 20, 2011 at 01:16:53PM +0100, Sebastian Spaeth wrote:
> A folder sync strategy is mostly like it was before:
>         Pass1: Transfer new local messages
>                Upload msg with negative/no UIDs to dstfolder. dstfolder
>                should assign that message a new UID. Update statusfolder.
>         Pass2: Copy existing messages
>                Copy messages in self, but not statusfolder to dstfolder
>                if not already in dstfolder. Update statusfolder.

If dest is IMAP, then copying will create a new UID, so how is
pass 2 different from pass 1?

>         Pass3: Remove deleted messages
>                Get all UIDS in statusfolder but not self. These are
>                messages that we have locally deleted. Delete those from
>                dstfolder and statusfolder.
>         Pass4: Synchronize flag changes
>                Compare flags in self with those in statusfolder. If msg
>                has a valid UID and exists on dstfolder (has not e.g.
>                been deleted there), sync the flag change to dstfolder
>                and statusfolder.

What about deleting mails from local folder (Maildir) which
have been deleted in remote (IMAP) folder?


More information about the OfflineIMAP-project mailing list