Use offlineimap (written by John Goerzen) or mbsync (written by Michael R. Imapsync is not adequate for maintaining two active imap accounts in synchronization where the user plays independently on both sides. In that case -delete2 can be used, it deletes messages in host2 folder B that are not in host1 folder A. You can also just synchronize a mailbox B from another mailbox A in case you just want to keep a “live” copy of A in B. (you can use -noexpunge to avoid this but I don't see any good real world scenario for the combinaison -delete -noexpunge). Option –delete implies also option -expunge so all messages marked deleted on host1 will be really deleted. You can decide to delete the messages from the source mailbox after a successful transfer, it can be a good feature when migrating live mailboxes since messages will be only one side. You can stop the transfer at any time and restart it later, imapsync works well with bad connections. All flags are preserved, unread will stay unread, read will stay read, deleted will stay deleted. Same headers and the transfer is done only once. Imapsync is a good tool because it reduces the amount of data transferred by not transferring a given message if it is already on both sides. We sometimes need to transfer mailboxes from one imap server to another. The command imapsync is a tool allowing incremental and recursive imap transfer from one mailbox to another.īy default all folders are transferred, recursively.
0 Comments
Leave a Reply. |