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!
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:
--syncinternaldates: fixes date issues with Eudora, Thunderbird...
--ssl1 and --ssl2: allows IMAP connections with SSL support. Remove these arguments if they don't apply to you.
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!
Last updated 23 Oct 2006, 11:00 CEST.