mirror of
https://github.com/imapsync/imapsync.git
synced 2025-07-23 18:55:55 +02:00
1.542
This commit is contained in:
parent
f9c9223de1
commit
7b3dcc45fb
28 changed files with 503 additions and 1144 deletions
1
examples/LOG/log_user001_2_2013_04_24_11_16_12.txt
Normal file
1
examples/LOG/log_user001_2_2013_04_24_11_16_12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
/home/gilles/migration.sh: 15: imapsync: not found
|
1
examples/LOG/log_user002_2_2013_04_24_11_16_12.txt
Normal file
1
examples/LOG/log_user002_2_2013_04_24_11_16_12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
/home/gilles/migration.sh: 15: imapsync: not found
|
1
examples/LOG/log_user003_2_2013_04_24_11_16_12.txt
Normal file
1
examples/LOG/log_user003_2_2013_04_24_11_16_12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
/home/gilles/migration.sh: 15: imapsync: not found
|
1
examples/LOG/log_user004_2_2013_04_24_11_16_12.txt
Normal file
1
examples/LOG/log_user004_2_2013_04_24_11_16_12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
/home/gilles/migration.sh: 15: imapsync: not found
|
1
examples/LOG/log_user005_2_2013_04_24_11_16_12.txt
Normal file
1
examples/LOG/log_user005_2_2013_04_24_11_16_12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
/home/gilles/migration.sh: 15: imapsync: not found
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id: archive_per_month,v 1.5 2012/08/12 16:41:22 gilles Exp gilles $
|
||||
# $Id: archive_per_month,v 1.6 2013/04/18 15:08:18 gilles Exp gilles $
|
||||
|
||||
# Translate Jan to 01, Feb to 02 etc.
|
||||
month_number() {
|
||||
|
@ -50,12 +50,12 @@ archive_year_month() {
|
|||
|
||||
|
||||
#
|
||||
for year_archive in 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012; do
|
||||
for year_archive in 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013; do
|
||||
for month_archive in "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"; do
|
||||
archive_year_month $year_archive $month_archive
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
# End of $Id: archive_per_month,v 1.5 2012/08/12 16:41:22 gilles Exp gilles $
|
||||
# End of $Id: archive_per_month,v 1.6 2013/04/18 15:08:18 gilles Exp gilles $
|
||||
|
||||
|
|
30
examples/install_modules.bat
Normal file
30
examples/install_modules.bat
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
REM $Id: install_modules.bat,v 1.2 2013/05/06 08:26:39 gilles Exp gilles $
|
||||
REM hi
|
||||
|
||||
ECHO Installing Perl modules for imapsync
|
||||
CD C:\msys\1.0\home\Admin\imapsync
|
||||
|
||||
perl -mMail::IMAPClient -e ""
|
||||
IF ERRORLEVEL 0 GOTO install_01
|
||||
perl -MCPAN -e "install Mail::IMAPClient"
|
||||
|
||||
:install_01
|
||||
|
||||
FOR %%M in ( Mail::IMAPClient ^
|
||||
IO::Socket IO::Socket::SSL ^
|
||||
Digest::MD5 Digest::HMAC_MD5 ^
|
||||
Term::ReadKey File::Spec ^
|
||||
Time::HiRes ^
|
||||
Data::Uniqid URI::Escape ^
|
||||
Authen::NTLM ^
|
||||
Time::Local ^
|
||||
PAR::Packer ) DO ECHO Testing %%M ^
|
||||
& perl -m%%M -e "" || perl -MCPAN -e "install %%M"
|
||||
|
||||
|
||||
ECHO Perl modules for imapsync installed
|
||||
|
||||
PAUSE
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
REM
|
||||
REM $Id: sync_loop_windows.bat,v 1.4 2012/12/23 08:02:34 gilles Exp gilles $
|
||||
REM $Id: sync_loop_windows.bat,v 1.5 2013/04/18 14:53:56 gilles Exp gilles $
|
||||
REM
|
||||
REM imapsync massive sync example batch for Windows users
|
||||
REM lines beginning with REM are just comments
|
||||
|
@ -9,10 +9,25 @@ REM in order to make it a batch command file that your system will recognize and
|
|||
REM
|
||||
REM Replace "imap.side1.org" and "imap.side2.org" with your own values
|
||||
REM
|
||||
REM ==== Log file ====
|
||||
REM This loop will also create a log file called log_%%I.txt for each account transfer
|
||||
REM where %%I is just a variable containing the user2 account name.
|
||||
REM and %mydate%_%mytime% is date and time formatted for a filename.
|
||||
REM Since "date /t" is localy dependent you may have to adapt mydate=%%c_%%a_%%b_%%d
|
||||
REM Since "date /t" is localy dependent you may have to adapt the
|
||||
REM order of %%x variables (a b c d) in mydate=%%c_%%a_%%b_%%d
|
||||
REM It is not important, just sugar to a useful listing of LOG directory
|
||||
|
||||
REM ==== Parallel executions ====
|
||||
REM If you want to do parallel runs of imapsync then this current script is a good start.
|
||||
REM Just copy it several times and replace, on each copy, the csvfile variable value.
|
||||
REM Instead of SET csvfile=file.txt write for example
|
||||
REM SET csvfile=file01.txt in the first copy
|
||||
REM then also
|
||||
REM SET csvfile=file02.txt in the second copy etc.
|
||||
REM Of course you also have to split the data contained in file.txt
|
||||
REM into file01.txt file02.txt etc.
|
||||
REM After that, just double-clic on each batch file to launch each process
|
||||
|
||||
|
||||
|
||||
REM @echo off
|
||||
|
@ -24,8 +39,10 @@ FOR /f "tokens=1-4 delims=-/: " %%a IN ('DATE /t') DO (SET mydate=%%c_%%a_%%b_%%
|
|||
FOR /f "tokens=1-2 delims=-/: " %%a IN ('TIME /t') DO (SET mytime=%%a_%%b)
|
||||
ECHO %mydate%_%mytime%
|
||||
|
||||
SET csvfile=file.txt
|
||||
|
||||
if not exist LOG mkdir LOG
|
||||
FOR /F "tokens=1,2,3,4 delims=; eol=#" %%G IN (file.txt) DO ECHO syncing to user %%I & imapsync ^
|
||||
FOR /F "tokens=1,2,3,4 delims=; eol=#" %%G IN (%csvfile%) DO ECHO syncing to user %%I & imapsync ^
|
||||
--host1 imap.side1.org --user1 %%G --password1 %%H ^
|
||||
--host2 imap.side2.org --user2 %%I --password2 %%J ^
|
||||
> LOG\log_%%I_%mydate%_%mytime%.txt 2>&1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue