2019-07-03 01:25:47 +02:00
|
|
|
# $Id: README_Windows.txt,v 1.14 2019/06/26 22:32:28 gilles Exp gilles $
|
2014-05-30 03:56:21 +02:00
|
|
|
#
|
2017-09-23 23:54:48 +02:00
|
|
|
# This is the README_Windows.txt file for imapsync
|
2014-05-30 03:56:21 +02:00
|
|
|
# imapsync : IMAP sync and migrate tool.
|
|
|
|
|
|
|
|
WINDOWS
|
|
|
|
=======
|
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
There is two ways to install and use imapsync on Windows systems: A) or B).
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
Standard users should take the A) way, the simplest way.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
Developers, or powerful users that want to build their own imapsync.exe
|
2018-05-07 16:04:23 +02:00
|
|
|
or modify it, have to consider the B) way, the complex but powerful way.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
|
|
|
A) Simplest way
|
|
|
|
---------------
|
|
|
|
|
|
|
|
A.1) Get imapsync.
|
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
Get imapsync at https://imapsync.lamiral.info/
|
2014-05-30 03:56:21 +02:00
|
|
|
You'll then have access to a zip archive file named imapsync_1.xxx.zip
|
|
|
|
where 1.xxx is the imapsync release number.
|
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
A.2) Extract the zip file in a folder where you will work with imapsync.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
|
|
|
You can work on the Desktop since the zip file extraction creates
|
2015-05-28 19:04:57 +02:00
|
|
|
a unique folder named imapsync_1.xxx (where 1.xxx is the imapsync
|
2014-05-30 03:56:21 +02:00
|
|
|
release number).
|
|
|
|
|
|
|
|
A.3) Check the folder
|
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
In the folder extracted imapsync_1.xxx you see 6 files and 2 directories:
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
* README_Windows.txt is the current file you are reading.
|
2017-09-23 23:54:48 +02:00
|
|
|
* README.txt is the imapsync general document.
|
2018-05-07 16:04:23 +02:00
|
|
|
* FAQ.d/* FAQs are a good read when something goes wrong.
|
|
|
|
* imapsync_example.bat is a simple batch file example you will copy and edit.
|
|
|
|
* sync_loop_windows.bat is a batch file example for syncing many accounts.
|
|
|
|
* file.txt is an input file example for syncing many accounts.
|
2019-07-03 01:25:47 +02:00
|
|
|
* imapsync.exe is the imapsync 32bit binary. You don't have to run it directly.
|
|
|
|
* imapsync_64bit.exe is the imapsync 64bit binary. You don't have to run it directly.
|
2018-05-07 16:04:23 +02:00
|
|
|
* Cook/ is the directory to build imapsync.exe from its source,
|
|
|
|
for the B) way and expert users.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2019-07-03 01:17:46 +02:00
|
|
|
You can copy or rename the file imapsync_example.bat as you wish,
|
2019-07-03 01:25:47 +02:00
|
|
|
as long as its extension remains ".bat".
|
|
|
|
|
2019-07-03 01:17:46 +02:00
|
|
|
On Windows systems .bat extension means "I'm a batch script".
|
2019-07-03 01:25:47 +02:00
|
|
|
It's the same for sync_loop_windows.bat.
|
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
The batch scripts have to stay in the same directory than
|
2019-07-03 01:25:47 +02:00
|
|
|
imapsync.exe because of the way they call imapsync.exe.
|
|
|
|
They use ".\imapsync.exe", so let them be in the same directory.
|
|
|
|
|
|
|
|
Or you can change the path .\ to whatever you want if you understand what
|
|
|
|
you are doing (you have to use a pathname from the script point of view).
|
2014-05-30 03:56:21 +02:00
|
|
|
|
|
|
|
For the rest of this documentation I assume you copied
|
|
|
|
imapsync_example.bat to a file named imapsync_stuff.bat
|
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
A.4) Edit the batch file
|
2014-05-30 03:56:21 +02:00
|
|
|
|
|
|
|
Edit imapsync_stuff.bat and change the values with yours.
|
|
|
|
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.
|
2018-05-07 16:04:23 +02:00
|
|
|
Notepad or Notepadd++ are very good editors to modify it.
|
|
|
|
Office Word or any powerful text processor are not good for that job,
|
|
|
|
don't use them!
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
Files FAQ.txt and FAQ.d/* contain many tips and special options sometimes
|
2014-05-30 03:56:21 +02:00
|
|
|
needed by specific imap server softwares like Exchange or Gmail.
|
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
|
2014-05-30 03:56:21 +02:00
|
|
|
A.5) Run the batch file
|
|
|
|
|
2018-05-07 16:04:23 +02:00
|
|
|
To run imapsync with your values just double-click on
|
2015-05-28 19:04:57 +02:00
|
|
|
the batch file imapsync_stuff.bat
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2019-07-03 01:17:46 +02:00
|
|
|
There is no need to have administrator privileges to run imapsync.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2019-07-03 01:17:46 +02:00
|
|
|
A.6) Loop on A.4) A.5) edit, run, edit, run etc.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
|
|
|
Loop the process of editing and running imapsync until
|
|
|
|
you solve all issues and all values suit your needs.
|
|
|
|
|
2017-09-23 23:54:48 +02:00
|
|
|
A.7) Look the sync running. You can abort it at any time with a
|
2019-07-03 01:17:46 +02:00
|
|
|
quick double ctrl-c, hit ctrl-c twice within one second.
|
|
|
|
(a single ctrl-c will reconnect to both imap servers).
|
|
|
|
You can also abort the sync by closing the DOS window.
|
|
|
|
|
|
|
|
A.8) When the sync is finished you can find the whole log file
|
|
|
|
of the output in the folder named "LOG_imapsync",
|
|
|
|
the logfile name is based on the launching date,
|
|
|
|
hour, minute, second, milliseconds and the user2 parameter.
|
|
|
|
|
|
|
|
There is one logfile per run.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
|
|
|
The logfile name is printed at the end of the imapsync run.
|
2017-09-23 23:54:48 +02:00
|
|
|
If you do not want logging to a file then use option --nolog
|
2014-05-30 03:56:21 +02:00
|
|
|
|
|
|
|
|
|
|
|
B) Hard way. It is the hard way because it installs all software
|
2015-05-28 19:04:57 +02:00
|
|
|
dependencies. This is the way for modifying imapsync.exe if needed.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
B.1) Install Perl if it isn't already installed.
|
2014-05-30 03:56:21 +02:00
|
|
|
Strawberry Perl is a very good candidate
|
|
|
|
http://strawberryperl.com/
|
2017-09-23 23:54:48 +02:00
|
|
|
I use 5.26.0.1 (31 may 2017) but previous and later releases
|
|
|
|
should work (5.18 and 5.20 do) as well.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
B.2) Go into the Cook/ directory
|
|
|
|
B.3) Double-clic build_exe.bat
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
It should create a binary imapsync.exe in the current Cook/ directory.
|
2014-05-30 03:56:21 +02:00
|
|
|
|
2015-05-28 19:04:57 +02:00
|
|
|
B.4) Move imapsync.exe in the upper directory and follow instructions
|
|
|
|
from A.3) to A.8)
|
2014-05-30 03:56:21 +02:00
|
|
|
|