mirror of
https://github.com/imapsync/imapsync.git
synced 2025-07-24 19:18:16 +02:00
1.637
This commit is contained in:
parent
4a536871fe
commit
e2bfc931f4
206 changed files with 7348 additions and 7982 deletions
|
@ -1,8 +1,8 @@
|
|||
# Example file.txt for imapsync massive migration.
|
||||
#
|
||||
# Each line contains 4 columns, columns are parameters for --user1 --password1 --user2 --password2
|
||||
# Windows: see the script examples/sync_loop_windows.bat
|
||||
# Unix: see the script examples/sync_loop_unix.sh
|
||||
# Windows: see the script examples/sync_loop_windows.bat
|
||||
# Unix: see the script examples/sync_loop_unix.sh
|
||||
#
|
||||
#
|
||||
# Now the data example
|
||||
|
@ -11,4 +11,4 @@ user002_1;password002_1;user002_2;password002_2
|
|||
user003_1;password003_1;user003_2;password003_2
|
||||
# Another comment blabla
|
||||
user004_1;password004_1;user004_2;password004_2
|
||||
user005_1;password005_1;user005_2;password005_2
|
||||
test1;secret1;test2;secret2
|
||||
|
|
|
@ -1,14 +1,27 @@
|
|||
@REM $Id: imapsync_example.bat,v 1.6 2014/05/29 23:43:09 gilles Exp gilles $
|
||||
@REM $Id: imapsync_example.bat,v 1.7 2015/03/26 04:35:24 gilles Exp gilles $
|
||||
|
||||
@REM imapsync example batch for Windows users
|
||||
@REM lines beginning with @REM are just comments
|
||||
|
||||
@REM Replace below the 6 parameters "imap.side1.org" "toto" "secretoto" "192.168.42.4" "titi" "titi secret"
|
||||
@REM Replace below the 6 parameters
|
||||
@REM "test1.lamiral.info" "test1" "secret1" "test2.lamiral.info" "test2" "secret2"
|
||||
@REM with your own values
|
||||
@REM Double quotes are necessary if a value contain one or more blanks.
|
||||
|
||||
.\imapsync.exe --host1 imap.side1.org --user1 toto --password1 "secretoto" ^
|
||||
--host2 192.168.42.4 --user2 titi --password2 "titi secret"
|
||||
@REM value for --host1 is the IMAP source server hostname or IP address
|
||||
@REM value for --user1 is the IMAP source user login
|
||||
@REM value for --password1 is the IMAP source user password
|
||||
|
||||
@REM value for --host2 is the IMAP destination server hostname or IP address
|
||||
@REM value for --user2 is the IMAP destination user login
|
||||
@REM value for --password2 is the IMAP destination user password
|
||||
|
||||
@REM Character ^ at the end of the first line is essential and means
|
||||
@REM "this command continues on the next line". You can add other lines
|
||||
@REM but don't forget ^ character lasting each line, except the last one.
|
||||
|
||||
.\imapsync.exe --host1 test1.lamiral.info --user1 test1 --password1 "secret1" ^
|
||||
--host2 test2.lamiral.info --user2 test2 --password2 "secret2"
|
||||
|
||||
@PAUSE
|
||||
|
||||
|
|
|
@ -1,10 +1,27 @@
|
|||
#!/bin/sh
|
||||
# $Id: imapsync_example.sh,v 1.3 2015/03/26 04:35:02 gilles Exp gilles $
|
||||
|
||||
# imapsync example shell for Unix users
|
||||
# lines beginning with # are just comments
|
||||
|
||||
# Replace imap.foo.org toto secretoto 192.168.42.4 titi secretiti with your own values
|
||||
# Replace below the 6 parameters
|
||||
# "test1.lamiral.info" "test1" "secret1" "test2.lamiral.info" "test2" "secret2"
|
||||
# with your own values
|
||||
# Double quotes are necessary if a value contain one or more blanks.
|
||||
|
||||
./imapsync --host1 imap.foo.org --user1 toto --password1 "secretoto" \
|
||||
--host2 192.168.42.4 --user2 titi --password2 "secretiti"
|
||||
# value for --host1 is the IMAP source server hostname or IP address
|
||||
# value for --user1 is the IMAP source user login
|
||||
# value for --password1 is the IMAP source user password
|
||||
|
||||
# value for --host2 is the IMAP destination server hostname or IP address
|
||||
# value for --user2 is the IMAP destination user login
|
||||
# value for --password2 is the IMAP destination user password
|
||||
|
||||
# Character \ at the end of the first line is essential and means
|
||||
# "this command continues on the next line". You can add other lines
|
||||
# but don't forget \ character lasting each line, except the last one.
|
||||
|
||||
|
||||
./imapsync --host1 test1.lamiral.info --user1 test1 --password1 'secret1' \
|
||||
--host2 test2.lamiral.info --user2 test2 --password2 'secret2'
|
||||
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
|
||||
REM $Id: install_modules.bat,v 1.13 2014/11/14 17:10:17 gilles Exp gilles $
|
||||
|
||||
@ECHO OFF
|
||||
|
||||
ECHO Installing Perl modules for imapsync
|
||||
REM CD /D %~dp0
|
||||
|
||||
perl -v
|
||||
IF ERRORLEVEL 1 ECHO Perl needed. Install Strawberry Perl. Get it at http://strawberryperl.com/ ^
|
||||
&& EXIT /B
|
||||
|
||||
REM perl is there
|
||||
|
||||
FOR %%M in ( Mail::IMAPClient ^
|
||||
Unicode::String ^
|
||||
File::Copy::Recursive ^
|
||||
Getopt::ArgvFile ^
|
||||
Module::ScanDeps ^
|
||||
PAR::Packer ^
|
||||
Test::Pod ^
|
||||
IO::Socket::IP ^
|
||||
IO::Socket::INET ^
|
||||
IO::Socket::INET6 ^
|
||||
Net::SSLeay ^
|
||||
Crypt::SSLeay ^
|
||||
Net::SSL IO::Socket::SSL ^
|
||||
Digest::MD5 ^
|
||||
Digest::HMAC_MD5 ^
|
||||
Data::Uniqid URI::Escape ^
|
||||
Authen::NTLM ^
|
||||
IO::Tee ^
|
||||
) DO ECHO Updating %%M ^
|
||||
& perl -MCPAN -e "install %%M"
|
||||
|
||||
REM & perl -m%%M -e "" || perl -MCPAN -e "install %%M"
|
||||
|
||||
ECHO Perl modules for imapsync installed
|
||||
REM PAUSE
|
||||
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id: install_modules_linux.sh,v 1.2 2014/05/21 01:23:11 gilles Exp gilles $
|
||||
|
||||
perl -MCPAN -e "install Mail::IMAPClient"
|
||||
perl -MCPAN -e "install Term::ReadKey"
|
||||
perl -MCPAN -e "install IO::Socket::SSL"
|
||||
perl -MCPAN -e "install Digest::HMAC_MD5"
|
||||
perl -MCPAN -e "install URI::Escape"
|
||||
perl -MCPAN -e "install File::Copy::Recursive"
|
||||
perl -MCPAN -e "install IO::Tee"
|
||||
|
||||
perl -MCPAN -e "install Data::Uniqid"
|
||||
perl -MCPAN -e "install Authen::NTLM"
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
@REM
|
||||
@REM $Id: sync_loop_windows.bat,v 1.7 2014/06/24 08:40:46 gilles Exp gilles $
|
||||
@REM $Id: sync_loop_windows.bat,v 1.9 2015/03/26 04:34:44 gilles Exp gilles $
|
||||
@REM
|
||||
@REM imapsync massive sync example batch for Windows users
|
||||
@REM lines beginning with REM are just comments
|
||||
@REM lines beginning with @REM are just comments
|
||||
@REM
|
||||
@REM Replace "imap.side1.org" and "imap.side2.org" with your own values
|
||||
@REM Replace "test1.lamiral.info" and "test2.lamiral.info" with your own values
|
||||
@REM
|
||||
@REM You should get familiar with a simple and single imapsync transfer before
|
||||
@REM playing with this loop batch file. See and play with imapsync_example.bat
|
||||
@REM
|
||||
@REM ==== Credentials file ====
|
||||
|
||||
|
@ -20,7 +23,7 @@
|
|||
|
||||
@REM ==== Log files ====
|
||||
|
||||
@REM Log files are in the LOG_imapsync subfolder
|
||||
@REM Log files are in the LOG_imapsync sub-folder
|
||||
|
||||
@REM ==== Parallel executions ====
|
||||
|
||||
|
@ -43,6 +46,10 @@
|
|||
@REM Note N as the number of parallel runs you got until then.
|
||||
@REM 4) Only keep N-2 parallel runs for the future.
|
||||
|
||||
@REM For Parallel executions there is also a PowerShell script written by
|
||||
@REM CARTER Alex explained and located on the imapsync archive list:
|
||||
@REM http://www.linux-france.org/prj/imapsync_list/msg02137.html
|
||||
|
||||
@REM ==== The real stuff ====
|
||||
|
||||
@REM @echo off
|
||||
|
@ -54,8 +61,8 @@ FOR /F "tokens=1,2,3,4 delims=; eol=#" %%G IN (%csvfile%) DO (
|
|||
@ECHO.
|
||||
|
||||
imapsync ^
|
||||
--host1 imap.side1.org --user1 %%G --password1 %%H ^
|
||||
--host2 imap.side2.org --user2 %%I --password2 %%J
|
||||
--host1 test1.lamiral.info --user1 %%G --password1 %%H ^
|
||||
--host2 test2.lamiral.info --user2 %%I --password2 %%J
|
||||
|
||||
@ECHO.==== End syncing from account %%G to account %%I ====
|
||||
@ECHO.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue