Download imapsync.exe
They have a github repo but there are no instructions on how to build it for Windows although their documentation states that it works on windows. Anyone know how to do it? Developers, or powerful users that want to build their own imapsync. On Windows systems. The batch scripts have to stay in the same directory than imapsync.
Or change the path. In order to edit it you have do a right click on it and select "modify" in the list presented in the small window menu. Office Word or any powerful text processor are not good for that job, don't use them!
Files FAQ. Loop the process of editing and running imapsync until you solve all issues and all values suit your needs. You can abort it at any time with a quick double ctrl-c, hit ctrl-c twice within one second. There is one logfile per run. The logfile name is printed at the end of the imapsync run. View code. NAME imapsync - Email IMAP tool for syncing, copying, migrating and archiving email mailboxes between two imap servers, one way, and without duplicates.
Imapsync command is a tool allowing incremental and recursive imap transfers from one mailbox to another. If you don't understand the previous sentence, it's normal, it's pedantic computer-oriented jargon.
Imapsync reduces the amount of data transferred by not transferring a given message if it already resides on the destination side. Messages that are on the destination side but not on the source side stay as they are. See the --delete2 option to have strict sync and delete them. How imapsync know a message is already on both sides? Same specific headers and the transfer is done only once. By default, the identification headers are "Message-Id:" and "Received:" lines but this choice can be changed with the --useheader option, most often a duplicate problem is solved by using --useheader "Message-Id" All flags are preserved, unread messages will stay unread, read ones will stay read, deleted will stay deleted.
You can abort the transfer at any time and restart it later, imapsync works well with bad connections and interruptions, by design. On a terminal hit Ctr-c twice within two seconds to abort the program.
Hit Ctr-c just once makes imapsync reconnect to both imap servers. How do you know the sync is finished and well done? If you have those final lines then it means the sync process is properly finished.
It may have encountered problems though. A good synchronization is mentioned by some lines above the last ones, especially those three lines: The sync looks good, all identified messages in host1 are on host2. There is no unidentified message on host1. Detected 0 errors A classical scenario is synchronizing a mailbox B from another mailbox A where you just want to keep a strict copy of A in B.
Strict meaning all messages in A will be in B but no more. For this, option --delete2 can be used, it deletes messages in the host2 folder B that are not in the host1 folder A. If you also need to destroy host2 folders that are not in host1 then use --delete2folders. See also --delete2foldersonly and --delete2foldersbutnot to set up exceptions on folders to destroy. A different scenario is to delete the messages from the source mailbox after a successful transfer, it can be a good feature when migrating mailboxes since messages will be only on one side.
The source account will only have messages that are not on the destination yet, ie, messages that arrived after a sync or that failed to be transferred. In that case, use the --delete1 option. Option --delete1 implies also the option --expunge1 so all messages marked deleted on host1 will be deleted.
You can also decide to remove empty folders once all of their messages have been transferred. Add --delete1emptyfolders to obtain this behavior. Imapsync is not adequate for maintaining two active imap accounts in synchronization when the user plays independently on both sides. Use offlineimap written by John Goerzen or mbsync written by Michael R. Elkins for a 2 ways synchronization. Three values on each side are needed in order to login into the IMAP servers.
These six values are a hostname, a username, and a password, two times. Conventions used in the following descriptions of the options: str means string int means integer number flo means float number reg means regular expression cmd means command --dry : Makes imapsync doing nothing for real; it just print what would be done without --dry. Optional --user2 str : User to login on host2. Useful to restart a complete run by just reading the command line used in the log, or to debug passwords.
It's not a secure practice at all! It must contain the password on the first line. This option avoids showing the password on the command line like --password1 does. Maybe one day those little crypto coins will be like gold? I will like that!
The figures presented here do not include the GitHub imapsync release usage. It's because --noreleasecheck is on by default since release 1. Looking at the numbers before and after , the figures showed above could be doubled. Where all those numbers come from? Via the User-agent parameter it also sends:. Check CVE This batch file is also in the zip archive so it's useless to download it.
This script file is also in the tgz archive so it's useless to download it. Here after is presented a Linux imapsync command line example. You can try it on a terminal, as is. Anyway, it's easier to edit a shell script with the same exact command and run this script in a terminal or from a graphical desktop. This shell script file is also in the tgz archive so it can be useless to download it. After Imapsync installation , a basic example in a shell terminal is the following:.
In order to migrate many mailboxes, you should use a loop over a csv file containing only the data credentials. An example of this csv file is file. Which Operating System to chose? Use the Operating System you are the most familiar with. Location requirements: Where to place imapsync? Any host in any place is ok for imapsync as long as it has a network access to both IMAP servers , the source and the destination. After the imapsync installation you should go to the documentation section just below.
Windows users can read it too. The README file contains general and specific pieces of information to understand imapsync and succeed in your migration or backup. The FAQ. Here is the main menu, take at least the time to read the menu , you will certainly lose some time to read it, two minutes, but reading this menu will most likely save you some struggling hours later , believe me. So read the three columns main menu:.
What you're allowed to do with imapsync is "No limits to do anything with this work and this license. Do not unzip the archive in what is called a "system" directory since. The really important files to get your mailbox. You don't have to run it directly. On Windows systems, a file name ending with a. A batch script is a file containing commands, it's a program. Don't be afraid, a program can be very simple to modify and I hope. The batch scripts have to stay in the same directory as.
They use the string ". You can change the path. For the rest of this documentation, I assume you copied. The original file is still in the zip file in case. This section describes how to edit the file mysync. To edit mysync. Office Word or any powerful text processor is NOT good for that job. Text processors transform files in a special format that is wrong to. Files FAQ.