Hi all,

Before explaining the problem from the subject line, let me describe my 
situation.

Recently I set up a personal mail server (dovecot), as a backup and archive of 
the email server of my provider.

I first tried to copy all my emails to this backup server using offlineimap. 
Although this mostly worked, I was not completely satisfied with the process, 
and I now set up mbsync to do a regular synchronisation (only from the main 
server to my backup server, for now).

The "channel" part of the config file is as follows:
==== ✂ ====
Channel xs4all-sync
Master :xs4all:
Slave :r3:
Pattern *
Expunge Slave
Create Slave 
Sync Pull
==== ✂ ====
(Both stores are imap stores.)

Now, the problem is that after synchronisation, most of my emails are present 
twice in my backup server. Presumably one of every two copies was created by 
the offlineimap program, and the other by mbsync, which somehow did not 
recognise that it was repeating work done already by offlineimap.

Is it expected that mbsync, with the above configuration, does not delete the 
old copies? I expected "Sync Pull" to create an exact replica of the state of 
the master.

Can mbsync be configured to delete the extraneous copies? If not, is there 
another (automated) way to do so? From my imap client, I can't see any 
difference between the two copies.

(If all else fails, I could delete everything from the backup server and 
restart the synchronisation, but I'd like to avoid another complete transfer.)


Regards,

Arie


------------------------------------------------------------------------------
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to