IMAP Mailbox Synchronization
IMAP Mailbox Synchronization
How do you synchronize a mailbox between two remote servers? A small tool called Imapsync exists for this purpose!
Warning
Warning: This software consumes a lot of CPU resources!
To install it, nothing complicated:
Next, let's create a folder in our home directory called .imapsync.
In this folder, we'll store the IMAP password for the account(s). The first file corresponds to the first server, and the second file to the second server:
You can also use the same file if you use the same password (as in my case).
For security reasons, let's change the permissions of this file(s):
Then, we simply call the command with the appropriate arguments:
The parameters in italics should be adapted according to your needs. Here are some brief explanations of the options:
Given the CPU load it generates, it's recommended to redefine the process priority. We can combine everything in a crontab entry to automate the process:
And that's it, we're all set!