This shows you the differences between two versions of the page.
|
en:linux:imapsync [2009/08/08 20:40] matthieu |
en:linux:imapsync [2011/01/08 12:40] (current) matthieu |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag>en en:linux en:mail en:client}} | ||
| ====== Imapsync ====== | ====== Imapsync ====== | ||
| Line 54: | Line 55: | ||
| </code> | </code> | ||
| - | * Add the follow Debian packages : | + | * Add the following Debian packages : |
| * libmail-imapclient-perl | * libmail-imapclient-perl | ||
| * libterm-readkey-perl | * libterm-readkey-perl | ||
| Line 104: | Line 105: | ||
| ==== Simple usage ==== | ==== Simple usage ==== | ||
| - | Imapsync synchronize from an IMAP account 1 to an IMAP account 2. Each account need to follow détails : | + | Imapsync synchronize from an IMAP account 1 to an IMAP account 2. Each account need the following détails : |
| * the server name/IP with "---host" | * the server name/IP with "---host" | ||
| * the login name with "---user" | * the login name with "---user" | ||
| Line 117: | Line 118: | ||
| ==== Google Apps / Gmail example ==== | ==== Google Apps / Gmail example ==== | ||
| - | Each IMAP server does not support the same features, so imapsync need seom tunning. | + | Each IMAP server does not support the same features, so imapsync need some tunning. |
| - | For Google Apps / Gmail, the follow options are required : | + | For Google Apps / Gmail, the following options are required : |
| * "---ssl2" : enable IMAPS on the destination side | * "---ssl2" : enable IMAPS on the destination side | ||
| * "---useheader 'Message-Id' ---skipsize" : imapsync use the size and the headers of emails to identify them. As Google change the headers, we need to make imapsync only look the "Message-Id" header | * "---useheader 'Message-Id' ---skipsize" : imapsync use the size and the headers of emails to identify them. As Google change the headers, we need to make imapsync only look the "Message-Id" header | ||
| Line 146: | Line 147: | ||
| ===== Migrate emails ===== | ===== Migrate emails ===== | ||
| A migration is a synchronisation with deletion.\\ | A migration is a synchronisation with deletion.\\ | ||
| - | With IMAP deletion is done in 2 steps : | + | With IMAP, deletion is done in 2 steps : |
| * deletion : an email is tagged "deleted" | * deletion : an email is tagged "deleted" | ||
| * expunge : emails tagged "deleted" are removed | * expunge : emails tagged "deleted" are removed | ||
| Line 158: | Line 159: | ||
| ===== Feedback ===== | ===== Feedback ===== | ||
| - | When I migration from courier to Google Apps, imapsync found some duplicated emails. Most of them where duplicated emails (email sent to 2 alias at the same time).\\ | + | When I migrated from courier to Google Apps, imapsync found some duplicated emails.\\ |
| - | But few emails had the "Message-ID" header empty, in that case imapsync consider them duplicated. | + | Most of them where real (email sent to 2 alias at the same time).\\ |
| + | But few emails were considered duplicated because of an empty "Message-ID". | ||
| - | The best way to migration all emails is to delete emails after synchronisation and manually check emails remaining on the source server. | + | The best way to migrate all emails is to delete emails after synchronization (with ---delete) and manually verify remaining emails. |
| ===== Links ===== | ===== Links ===== | ||
| * http://www.linux-france.org/prj/imapsync/ | * http://www.linux-france.org/prj/imapsync/ | ||
| - | * [[serveur_mail]] | ||
| - | |||